summaryrefslogtreecommitdiff
path: root/sqlbox/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'sqlbox/view.php')
-rw-r--r--sqlbox/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php
index 1158d7b..b45924b 100644
--- a/sqlbox/view.php
+++ b/sqlbox/view.php
@@ -86,7 +86,7 @@ if (isset($data->sqlbox_query)) {
$result = pg_query($db, $data->sqlbox_query);
if (!$result)
- error("Query failed!");
+ error("Query failed: ".pg_last_error($db));
echo "<table style=\"border: 1px;\">";
$n = pg_num_fields($result);