Skip to content

Commit

Permalink
fixing JSON serialization bug on fatal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Apr 30, 2010
1 parent 49dcf42 commit d31639d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Android.pm
Expand Up @@ -158,7 +158,7 @@ sub do_rpc {
if (defined $result) {
if (ref $result eq 'HASH') {
if (defined $result->{error}) {
$error = to_json($result->{error});
$error = to_json( { error => $result->{error} } );
} else {
$success = 1;
}
Expand Down

0 comments on commit d31639d

Please sign in to comment.