зеркало из https://github.com/mozilla/pjs.git
Propogate errors from the results frame for a nicer stack trace.
This commit is contained in:
Родитель
cbaf4bd887
Коммит
5babb394c0
|
@ -125,7 +125,14 @@ sub execute {
|
|||
$value = undef; # used to be '' # XXX ?
|
||||
}
|
||||
}
|
||||
if ($self->handle->execute(@values)) {
|
||||
my $result = try {
|
||||
$self->handle->execute(@values);
|
||||
} except {
|
||||
raise PLIF::Exception::Database (
|
||||
'message' => $_[0],
|
||||
);
|
||||
};
|
||||
if ($result) {
|
||||
$self->executed(1);
|
||||
return $self;
|
||||
} elsif (not $raise) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче