Skip to content
Snippets Groups Projects
Commit 9c6409c5007b authored by Christophe de Vienne's avatar Christophe de Vienne
Browse files

database migrations: fix some error messages

parent dcf7e94ec5c7
No related branches found
No related tags found
No related merge requests found
Pipeline #120630 failed
......@@ -110,6 +110,6 @@
return fmt.Errorf("schema '%s' is %w", s.Name, ErrDBNotVersioned)
}
if err != nil {
return fmt.Errorf("error while checking the database version: %w", err)
return fmt.Errorf("error while checking the schema '%s' version: %w", s.Name, err)
}
if dirty {
......@@ -114,6 +114,6 @@
}
if dirty {
return errors.New("schema '%s' is marked 'dirty'")
return fmt.Errorf("schema '%s' is marked 'dirty'", s.Name)
}
if version < lastVersion {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment