Commit 427e4d0a authored by Xavier Guimard's avatar Xavier Guimard

$! is not reset so must not be asked (Closes: #889)

parent 3467d591
......@@ -132,7 +132,7 @@ sub jsonBodyToObj {
}
return $self->body if ( ref( $self->body ) );
my $j = eval { from_json( $self->body ) };
if ( $@ or $! ) {
if ($@) {
$self->error("$@$!");
return undef;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment