Skip to content

Commit 919c6a4

Browse files
committed
More debug
1 parent 19f40f6 commit 919c6a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sqllib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ sql_safe_query_use (SQL * sql, char *q)
223223
{
224224
if (!sqldebug)
225225
fprintf (stderr, "%s\n", q);
226-
errx (202, "SQL query no result");
226+
errx (202, "SQL query use, no result (%s)",q);
227227
}
228228
return r;
229229
}
@@ -238,14 +238,14 @@ sql_safe_query_store (SQL * sql, char *q)
238238
{
239239
if (!sqldebug)
240240
fprintf (stderr, "SQL failed (%s): %s\n%s\n", sql->db, sql_error (sql), q);
241-
errx (201, "SQL query failed");
241+
errx (201, "SQL query store, failed");
242242
}
243243
r = sql_store_result (sql);
244244
if (!r)
245245
{
246246
if (!sqldebug)
247247
fprintf (stderr, "%s\n", q);
248-
errx (202, "SQL query no result");
248+
errx (202, "SQL query store, no result (%s)",q);
249249
} else if (sqldebug)
250250
fprintf (stderr, "(%llu row%s)\n", sql_num_rows (r), sql_num_rows (r) == 1 ? "" : "s");
251251
return r;

0 commit comments

Comments
 (0)