Add a warning to missing DATA_PATH env
This commit is contained in:
parent
3665a62c6e
commit
5ac44d85cb
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ func InnerMain() {
|
||||||
log.Printf("Initialising version %s...\n", version.Version)
|
log.Printf("Initialising version %s...\n", version.Version)
|
||||||
|
|
||||||
// Set the persistence path
|
// Set the persistence path
|
||||||
if err := persistence.SetPath(data); err != nil {
|
if len(data) == 0 {
|
||||||
|
log.Fatal("DATA_PATH not set")
|
||||||
|
} else if err := persistence.SetPath(data); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue