projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb0c37e
)
show SQL errors
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 27 Mar 2011 17:23:46 +0000
(17:23 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 27 Mar 2011 17:23:46 +0000
(17:23 +0000)
web_ui.pl
patch
|
blob
|
history
diff --git
a/web_ui.pl
b/web_ui.pl
index
f82f67a
..
200b618
100755
(executable)
--- a/
web_ui.pl
+++ b/
web_ui.pl
@@
-86,6
+86,9
@@
get '/gnuplot' => sub {
$ret = Mojo::JSON->new->decode( $ret );
+ return $self->render('gnuplot', sql => $sql, img => '', gnuplot => $ret->{error} )
+ if exists $ret->{error};
+
my $dir = $self->app->home->rel_dir('public');
my $name = $sql;