Fix crash log file not found error in spike #12

Merged
probablycorey merged 1 commits from probablycorey/fix-crash-log-path into main 2026-03-10 16:54:32 +00:00

Use getConfig("dataDir") instead of process.env.DATA_DIR and ensure the directory exists before writing the crash log file. This fixes the ENOENT error that occurred when spike crashed.

The fix aligns with how log.ts already handles its directory setup, using consistent config access patterns and recursive directory creation.

Use getConfig("dataDir") instead of process.env.DATA_DIR and ensure the directory exists before writing the crash log file. This fixes the ENOENT error that occurred when spike crashed. The fix aligns with how log.ts already handles its directory setup, using consistent config access patterns and recursive directory creation.
probablycorey added 1 commit 2026-03-10 16:53:40 +00:00
Fix crash log file not found error in spike
Some checks failed
CI / test (pull_request) Has been cancelled
c9fc834f4e
Use getConfig("dataDir") and ensure directory exists before writing crash log, fixing ENOENT error when spike crashes.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
probablycorey merged commit 726c76cf96 into main 2026-03-10 16:54:32 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: probablycorey/workshop#12
No description provided.