The whole explanation a person gets for a dead app, on the studio page and in the run's summary:
start: exited with code 1 before answering — last output:
at src/env.ts:22:37 | | Bun v1.3.14 (Linux x64 baseline)
The actual error — TypeError [ERR_INVALID_URL]: "http://notes.127.0.0.1:3999" cannot be parsed as a URL — was printed by the app two lines earlier and thrown away. What is kept is the tail of the output, which for any thrown error is the bottom of the stack: a frame, a blank line and the runtime's version banner. The one line that says what happened is the one line that is dropped.
Done looks like:
Files I expect to change: src/apps/process.ts (where the output tail becomes the failure text), test/apps.test.ts.
Risks: do not parse the language's stack format deeply — a heuristic that prefers the first non-frame, non-empty line is enough and stays true for an app written in anything. Keep the cap on length, and keep escaping: this string lands on a page.
Found while reproducing #269, which is the crash this line failed to explain.
The whole explanation a person gets for a dead app, on the studio page and in the run's summary:
The actual error —
TypeError [ERR_INVALID_URL]: "http://notes.127.0.0.1:3999" cannot be parsed as a URL— was printed by the app two lines earlier and thrown away. What is kept is the tail of the output, which for any thrown error is the bottom of the stack: a frame, a blank line and the runtime's version banner. The one line that says what happened is the one line that is dropped.Done looks like:
Files I expect to change:
src/apps/process.ts(where the output tail becomes the failure text),test/apps.test.ts.Risks: do not parse the language's stack format deeply — a heuristic that prefers the first non-frame, non-empty line is enough and stays true for an app written in anything. Keep the cap on length, and keep escaping: this string lands on a page.
Found while reproducing #269, which is the crash this line failed to explain.
Whose brief fits: Scout — one function, one test.