-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: anyware error passthrough (#1127)
- Loading branch information
1 parent
2835fcd
commit d5a1fda
Showing
59 changed files
with
609 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
...outputs__/20_output/output_envelope_envelope_error-throw__envelope-error-throw.output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
/some/path/to/runPipeline.ts:76 | ||
/some/path/to/runPipeline.ts:XX:XX | ||
return new ContextualError(message, { | ||
^ | ||
|
||
|
||
ContextualError: There was an error in the extension "anonymous" (use named functions to improve this error message) while running hook "encode". | ||
at runPipeline (/some/path/to/runPipeline.ts:XX:XX) | ||
at async Object.run (/some/path/to/main.ts:XX:XX) | ||
at async run (/some/path/to/client.ts:XX:XX) | ||
at async executeRootType (/some/path/to/client.ts:XX:XX) | ||
at async executeRootTypeField (/some/path/to/client.ts:XX:XX) | ||
at async <anonymous> (/some/path/to/output_envelope_envelope_error-throw__envelope-error-throw.ts:XX:XX) { | ||
at runPipeline (/some/path/to/runPipeline.ts:XX:XX:18) | ||
at async Object.run (/some/path/to/main.ts:XX:XX:22) | ||
at async run (/some/path/to/client.ts:XX:XX:20) | ||
at async executeRootType (/some/path/to/client.ts:XX:XX:12) | ||
at async executeRootTypeField (/some/path/to/client.ts:XX:XX:20) | ||
at async <anonymous> (/some/path/to/output_envelope_envelope_error-throw__envelope-error-throw.ts:XX:XX:1) { | ||
context: { | ||
hookName: 'encode', | ||
source: 'extension', | ||
extensionName: 'anonymous' | ||
}, | ||
cause: Error: Something went wrong. | ||
at <anonymous> (/some/path/to/output_envelope_envelope_error-throw__envelope-error-throw.ts:XX:XX) | ||
at applyBody (/some/path/to/main.ts:XX:XX) | ||
at <anonymous> (/some/path/to/output_envelope_envelope_error-throw__envelope-error-throw.ts:XX:XX:11) | ||
at applyBody (/some/path/to/main.ts:XX:XX:28) | ||
} | ||
|
||
Node.js vXX.XX.XX |
36 changes: 18 additions & 18 deletions
36
examples/__outputs__/20_output/output_preset__standard-graphql.output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
examples/__outputs__/20_output/output_return-error.output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
---------------------------------------- SHOW ---------------------------------------- | ||
ContextualError: There was an error in the extension "anonymous" (use named functions to improve this error message) while running hook "encode". | ||
at runPipeline (/some/path/to/runPipeline.ts:XX:XX) | ||
at async Object.run (/some/path/to/main.ts:XX:XX) | ||
at async run (/some/path/to/client.ts:XX:XX) | ||
at async executeRootType (/some/path/to/client.ts:XX:XX) | ||
at async executeRootTypeField (/some/path/to/client.ts:XX:XX) | ||
at async <anonymous> (/some/path/to/output_return-error.ts:XX:XX) { | ||
at runPipeline (/some/path/to/runPipeline.ts:XX:XX:18) | ||
at async Object.run (/some/path/to/main.ts:XX:XX:22) | ||
at async run (/some/path/to/client.ts:XX:XX:20) | ||
at async executeRootType (/some/path/to/client.ts:XX:XX:12) | ||
at async executeRootTypeField (/some/path/to/client.ts:XX:XX:20) | ||
at async <anonymous> (/some/path/to/output_return-error.ts:XX:XX:18) { | ||
context: { | ||
hookName: 'encode', | ||
source: 'extension', | ||
extensionName: 'anonymous' | ||
}, | ||
cause: Error: Something went wrong. | ||
at <anonymous> (/some/path/to/output_return-error.ts:XX:XX) | ||
at applyBody (/some/path/to/main.ts:XX:XX) | ||
at <anonymous> (/some/path/to/output_return-error.ts:XX:XX:11) | ||
at applyBody (/some/path/to/main.ts:XX:XX:28) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
examples/__outputs__/30_raw/raw_rawDocumentNode__raw-document-node.output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
{ name: 'Squirtle' }, | ||
{ name: 'Bulbasaur' } | ||
] | ||
} | ||
} |
30 changes: 15 additions & 15 deletions
30
examples/__outputs__/50_anyware/anyware_slot_slot-body__slot-search-params.output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
/some/path/to/runPipeline.ts:84 | ||
/some/path/to/runPipeline.ts:XX:XX | ||
return new ContextualError(message, { hookName: signal.hookName, source: signal.source }, signal.error) | ||
^ | ||
|
||
|
||
ContextualError: There was an error in the core implementation of hook "pack". | ||
at runPipeline (/some/path/to/runPipeline.ts:XX:XX) | ||
at async runPipeline (/some/path/to/runPipeline.ts:XX:XX) | ||
at async Object.run (/some/path/to/main.ts:XX:XX) | ||
at async run (/some/path/to/client.ts:XX:XX) | ||
at async runRaw (/some/path/to/client.ts:XX:XX) | ||
at async Object.raw (/some/path/to/client.ts:XX:XX) | ||
at async Proxy.rawString (/some/path/to/client.ts:XX:XX) | ||
at async <anonymous> (/some/path/to/anyware_slot_slot-body__slot-search-params.ts:XX:XX) { | ||
at runPipeline (/some/path/to/runPipeline.ts:XX:XX:18) | ||
at async runPipeline (/some/path/to/runPipeline.ts:XX:XX:14) | ||
at async Object.run (/some/path/to/main.ts:XX:XX:22) | ||
at async run (/some/path/to/client.ts:XX:XX:20) | ||
at async runRaw (/some/path/to/client.ts:XX:XX:12) | ||
at async Object.raw (/some/path/to/client.ts:XX:XX:14) | ||
at async Proxy.rawString (/some/path/to/client.ts:XX:XX:14) | ||
at async <anonymous> (/some/path/to/anyware_slot_slot-body__slot-search-params.ts:XX:XX:16) { | ||
context: { hookName: 'pack', source: 'implementation' }, | ||
cause: Error: Unexpected null value. | ||
at throwNull (/some/path/to/prelude.ts:XX:XX) | ||
at Object.run (/some/path/to/core.ts:XX:XX) | ||
at runHook (/some/path/to/runHook.ts:XX:XX) | ||
at <anonymous> (/some/path/to/runHook.ts:XX:XX) | ||
at <anonymous> (/some/path/to/anyware_slot_slot-body__slot-search-params.ts:XX:XX) | ||
at applyBody (/some/path/to/main.ts:XX:XX) | ||
at throwNull (/some/path/to/prelude.ts:XX:XX:29) | ||
at Object.run (/some/path/to/core.ts:XX:XX:35) | ||
at runHook (/some/path/to/runHook.ts:XX:XX:37) | ||
at <anonymous> (/some/path/to/runHook.ts:XX:XX:14) | ||
at <anonymous> (/some/path/to/anyware_slot_slot-body__slot-search-params.ts:XX:XX:18) | ||
at applyBody (/some/path/to/main.ts:XX:XX:28) | ||
} | ||
|
||
Node.js vXX.XX.XX |
Oops, something went wrong.