summaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-09-24 13:36:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-09-24 13:36:21 +0200
commit1f9b5d832a2eb0bee0930b11dee424d19419fbd7 (patch)
treef76a549caba6bf498f45f9a8991056e2647813f5 /cgi
parent2065739683c36dff30bacb32575bb0d692f7ecac (diff)
Expose backend errors in JSON
Diffstat (limited to 'cgi')
-rw-r--r--cgi/index.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 7e88cee..8ca7c5c 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -315,6 +315,7 @@ sub render_json {
$self->render(
json => {
+ error => $errstr,
preformatted => \@preformatted,
raw => \@raw_objects,
}