File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,8 +172,7 @@ The Resulting "Messy" Stack Trace:
172172``` shell
173173Error: Failed to connect: " ws://localhost:3000"
174174 at /project/node_modules/neverthrow/dist/index.cjs.js:106:34 < -- 🛑 Useless! Internal library code.
175- at processTicksAndRejections (node:internal/process/task_queues:95:5)
176- at async /project/src/main.ts:15:20
175+ at processTicksAndRejections (native)
177176```
178177
179178You’ll notice the top frames point to internal files of ` neverthrow ` , making it impossible to see where your business logic actually failed.
@@ -196,8 +195,7 @@ now the stack trace points to your business logic:
196195Error: Failed to connect: " ws://localhost:3000"
197196 at /project/mcp/client.ts:15:11 < -- 🟢 Useful! Business code.
198197 at /project/node_modules/neverthrow/dist/index.cjs.js:106:34
199- at processTicksAndRejections (node:internal/process/task_queues:95:5)
200- at async /project/src/main.ts:15:20
198+ at processTicksAndRejections (native)
201199```
202200
203201🎯 The "Crime Scene": Callback Freedom
You can’t perform that action at this time.
0 commit comments