diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-20 21:55:04 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-20 22:02:57 +0200 |
| commit | ceff3d26732a7fde2f66df0270269d3bebcfabf7 (patch) | |
| tree | 4ad6677617cae9de4aa4b5b42352a7a8cf29a3e9 /src/cmd_audit.c | |
| parent | 10a535ace098144980d0ffd1593f6384c39cc221 (diff) | |
| download | bokf-ceff3d26732a7fde2f66df0270269d3bebcfabf7.tar.gz bokf-ceff3d26732a7fde2f66df0270269d3bebcfabf7.zip | |
commands: shared DB-error helpers
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/cmd_audit.c')
| -rw-r--r-- | src/cmd_audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_audit.c b/src/cmd_audit.c index 183e7e6..250f096 100644 --- a/src/cmd_audit.c +++ b/src/cmd_audit.c @@ -41,7 +41,7 @@ static yyjson_mut_val *h_audit_list(struct req *r) "request_json,result_code FROM audit_log" " WHERE org_id=?1 AND seq>?2 ORDER BY seq LIMIT ?4"; if (sqlite3_prepare_v2(r->db, sql, -1, &st, NULL) != SQLITE_OK) - return fail(r, "INTERNAL", "database error"); + return db_error(r); sqlite3_bind_int64(st, 1, r->org_id); sqlite3_bind_int64(st, 2, cursor); if (action) |
