add check for unset XBIT_DB

This commit is contained in:
filifa 2024-03-19 20:31:33 -05:00
parent c4a1f07ee2
commit 7e49f06d8e
1 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,10 @@ func main() {
}
dbpath := os.Getenv("XBIT_DB")
if dbpath == "" {
log.Fatal("XBIT_DB not set")
}
var db TimelineDB
var err error
db.DB, err = sql.Open("sqlite3", dbpath)