Skip to content

Commit 8cc6c2f

Browse files
committed
fix error serialization in report.json
Error objects serialize to {} in JSON. Now errors are stored as strings so they appear correctly in the report.
1 parent 51d2831 commit 8cc6c2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runners/godot-optimizer/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ export async function godotOptimizer(
8383
const logger = components.logs.getLogger('godot-optimizer')
8484
logger.error(`Error processing job ${entity.entity.entityId}`)
8585
logger.error(error as any)
86-
state.errors.push(error as any)
86+
// Push error message as string (Error objects serialize to {} in JSON)
87+
state.errors.push(error instanceof Error ? error.message : String(error))
8788
}
8889

8990
try {

0 commit comments

Comments
 (0)