Skip to content

Commit 14ff5ee

Browse files
committed
clearer error message
1 parent f788d19 commit 14ff5ee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

agents/src/ipc/job_proc_lazy_main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ const startJob = (
134134
} catch (error) {
135135
logger.error({ error }, 'error in entry function');
136136
shutdown = true;
137-
safeSend({ case: 'exiting', value: { reason: String(error) } });
137+
safeSend({
138+
case: 'exiting',
139+
value: { reason: error instanceof Error ? error.message : String(error) },
140+
});
138141
}
139142

140143
// Close the primary agent session if it exists

0 commit comments

Comments
 (0)