about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-21 16:47:54 -0400
committerJune McEnroe <june@causal.agency>2020-05-21 16:47:54 -0400
commitbf117319b9dbe93dc4b8dbe6e4540b1380b042c1 (patch)
tree56d6131c871265dca56a61de19c3bff58cf6789e
parentAdd only the necessary expressions to scoop's query (diff)
downloadlitterbox-bf117319b9dbe93dc4b8dbe6e4540b1380b042c1.tar.gz
litterbox-bf117319b9dbe93dc4b8dbe6e4540b1380b042c1.zip
Fix dbPrepare errx call
-rw-r--r--database.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/database.h b/database.h
index 878a5f6..117d7eb 100644
--- a/database.h
+++ b/database.h
@@ -159,7 +159,7 @@ static inline void dbClose(void) {
 static inline sqlite3_stmt *dbPrepare(const char *sql) {
 	sqlite3_stmt *stmt;
 	int error = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL);
-	if (error) err(EX_SOFTWARE, "%s: %s", sqlite3_errmsg(db), sql);
+	if (error) errx(EX_SOFTWARE, "%s: %s", sqlite3_errmsg(db), sql);
 	return stmt;
 }
 
don't know the words for what I'm looking at, and a good description is an entirely different work of art than the photo I took, and I'm just a photographer. It's visual art. 2024-09-23Automatically select the last used lens for a bodyJune McEnroe 2024-09-19Add photos from September 5June McEnroe Had to prefix the folder number onto these file names manually because they must have come out of a different scanner or something. 2024-09-15Add some more film stocks to the listJune McEnroe 2024-09-13Add photos from September 2June McEnroe 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe This seems easier to visually scan. The only other thing I'd like is a nicer date rendering but JavaScript is useless for that. 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe