fix: log error on migration fail
1 files changed, 1 insertions(+), 1 deletions(-) M internal/db/migrations.go
M internal/db/migrations.go => internal/db/migrations.go +1 -1
@@ 40,7 40,7 @@ func runMigrations() { slog.Info("Running migration", slog.Int("version", i+1)) // + 1 is just a visual thing _, err := DBConn.Exec(migrations[i]) if err != nil { slog.Error("Migration failed to run!", slog.Int("version", i)) slog.Error("Migration failed to run!", slog.Int("version", i), slog.String("error", err.Error())) os.Exit(1) } }