feat(backend): check for the full database path to verify its existence (#681)

pull/682/head
Anthony Lapenna 8 years ago committed by GitHub
parent 3861e964f4
commit b24825d453

@ -49,7 +49,7 @@ func NewStore(storePath string) (*Store, error) {
store.ResourceControlService.store = store store.ResourceControlService.store = store
store.VersionService.store = store store.VersionService.store = store
_, err := os.Stat(storePath) _, err := os.Stat(storePath + "/" + databaseFileName)
if err != nil && os.IsNotExist(err) { if err != nil && os.IsNotExist(err) {
store.checkForDataMigration = false store.checkForDataMigration = false
} else if err != nil { } else if err != nil {

Loading…
Cancel
Save