Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Feb 2, 2011
1 parent 2337290 commit aed33e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/JSON/RPC/Common/Marshal/HTTP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ sub write_result_to_response {
}
}

croak "BAH" if keys %args;
if (my @keys = keys %args) {
croak "Unhandled response params: " . join ' ', @keys;
}

return 1;
}
Expand Down

0 comments on commit aed33e1

Please sign in to comment.