Permalink
Browse files

api: Send only raw text to JSON

  • Loading branch information...
1 parent daeb42c commit 6dca66acfb2699fde4c8650fb6eed56cd09ec518 @thumper thumper committed Jan 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 remote/analysis/WikiTrust.pm
@@ -91,7 +91,7 @@ sub handler {
my $E = shift;
print STDERR $E if $E !~ m/^No info on/ && $E !~ m/^TEXT_NOT_FOUND/;
if ($format eq 'json') {
- my $json = { 'error' => $E };
+ my $json = { 'error' => $E->text };
$result = printJson($cgi, $r, $json, 1);
} else {
$r->no_cache(1);

0 comments on commit 6dca66a

Please sign in to comment.