Fix SQL casing and improve error handling
This commit is contained in:
parent
c0227e4e2d
commit
72ed1ae61b
6 changed files with 20 additions and 15 deletions
|
|
@ -24,7 +24,7 @@ func (s *Store) loadFile(file string) {
|
|||
query, _ := migrations.ReadFile("migrations/" + file)
|
||||
_, err = s.db.Exec(string(query))
|
||||
if err != nil {
|
||||
log.Fatal("error executing migration: ", file)
|
||||
log.Fatal("error executing migration: ", file, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue