summary refs log tree commit diff
path: root/database.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-21 12:19:27 -0400
committerJune McEnroe <june@causal.agency>2020-05-21 12:19:27 -0400
commit62e20dea651bc2db8b8d491d449d0b0241ad42c4 (patch)
tree5d43eb9efd380e41b6141447864a45b0bc9b5371 /database.h
parentDon't install rc scripts on other platforms (diff)
downloadlitterbox-62e20dea651bc2db8b8d491d449d0b0241ad42c4.tar.gz
litterbox-62e20dea651bc2db8b8d491d449d0b0241ad42c4.zip
Automatically perform database migrations in litterbox
To simplify upgrades, restarting litterbox should be sufficient. The
database can still be explicitly migrated with -m.
Diffstat (limited to '')
-rw-r--r--database.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/database.h b/database.h
index c852e11..878a5f6 100644
--- a/database.h
+++ b/database.h
@@ -123,7 +123,7 @@ static inline void dbFind(char *path, int flags) {
 		dataDirs += len;
 		if (*dataDirs) dataDirs++;
 	}
-	errx(EX_NOINPUT, "database not found");
+	errx(EX_NOINPUT, "database not found; initialize it with litterbox -i");
 }
 
 static struct Persist {