Skip to content

Commit

Permalink
fix(be): exit from method on error
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jan 23, 2022
1 parent e9e78ad commit 0bc9aab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -8,8 +8,8 @@ web2/.nyc_output
web2/dist/**/*
/config.json
/.dredd/config.json
/database.bolt
/database.boltdb
/database.boltdb.lock
.DS_Store
node_modules/

Expand Down
Empty file removed database.boltdb.lock
Empty file.
4 changes: 4 additions & 0 deletions db/bolt/migration.go
Expand Up @@ -53,6 +53,10 @@ func (d *BoltDb) ApplyMigration(migration db.Migration) (err error) {

j, err := json.Marshal(migration)

if err != nil {
return err
}

return b.Put([]byte(migration.Version), j)
})
}
Expand Down

0 comments on commit 0bc9aab

Please sign in to comment.