Skip to content

Commit 1b45064

Browse files
committed
Do not bail-out daemon if data dir can't be created
1 parent cc3396f commit 1b45064

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: internal/inventory/inventory.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ func Init(configPath string) error {
5555
return err
5656
}
5757
if err := WriteStore(); err != nil {
58-
return err
58+
// If an error occurs during saving of the store, just log it
59+
logrus.WithError(err).Error("Error writing inventory store")
5960
}
6061
}
6162

0 commit comments

Comments
 (0)