Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: warp error for transform write back schema in GitOps (#5265)

rebelicee9ab0ede4837
diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.go
index b684827dc0..ad17e28dbf 100644
--- a/backend/runner/taskrun/executor.go
+++ b/backend/runner/taskrun/executor.go
@@ -412,7 +412,7 @@ func postMigration(ctx context.Context, stores *store.Store, activityManager *ac
if instance.Engine == db.MySQL || instance.Engine == db.MariaDB {
standardSchema, err := transform.SchemaTransform(parser.MySQL, schema)
if err != nil {
- return true, nil, errors.Errorf("failed to transform to standard schema for database %q", database.DatabaseName)
+ return true, nil, errors.Wrapf(err, "failed to transform to standard schema for database %q", database.DatabaseName)
}
schema = standardSchema
}