fix: surface postgres error detail when datatable migrations fail to run

This commit is contained in:
Diego Imbert
2026-06-18 23:34:55 +02:00
parent d234001e63
commit e98dcd3579
2 changed files with 16 additions and 6 deletions
+4 -2
View File
@@ -4999,8 +4999,10 @@ export async function push(
yes: opts.yes,
jsonOutput: opts.jsonOutput,
});
} catch (e) {
log.warn(`Failed to run new datatable migrations: ${e}`);
} catch (e: any) {
log.warn(
`Failed to run new datatable migrations: ${e?.body ?? e?.message ?? e}`,
);
}
if (opts.jsonOutput) {
const result = {