Skip to content

Commit cdc4ee6

Browse files
committed
Add error log
1 parent 1a5a623 commit cdc4ee6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/service-waiter/cmd/database.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ func checkDbAvailable(ctx context.Context, cfg *mysql.Config, migration *migrati
124124
row := db.QueryRowContext(ctx, "SELECT name FROM "+migrationTableName+" WHERE timestamp = ?", migration.Timestamp)
125125
var name string
126126
if err := row.Scan(&name); err != nil {
127+
log.WithError(err).Error("failed to fetch related migration")
127128
return err
128129
}
129130
// migration name should be `{migrationName}{timestamp}`. i.e. AddGitStatusColumnToWorkspaceInstance1690915807191

0 commit comments

Comments
 (0)