Refactor db errors
This commit is contained in:
@@ -28,7 +28,7 @@ var migrations embed.FS
|
||||
// the application code expects a schema that matches the latest migration.
|
||||
func (s *SQLite) ApplySchema(ctx context.Context, log *slog.Logger) error {
|
||||
if log == nil {
|
||||
return fmt.Errorf("logger is nil")
|
||||
return fmt.Errorf("missing logger")
|
||||
}
|
||||
|
||||
var currentVersion int
|
||||
|
||||
Reference in New Issue
Block a user