internal/test_helper: improve error message
@@ -156,7 +156,7 @@ func SetupTestDB(dbName string) (*DB, error) {
_, err = tryToMigrate(dbName)
}
if err != nil {
- return nil, fmt.Errorf("unfixable error migrating database: %v", err)
+ return nil, fmt.Errorf("unfixable error migrating database: %v.\nConsider running ./devtools/drop_test_dbs.sh", err)
}
}
return Open("postgres", dbConnURI(dbName))
