Commit 223e158
authored
add causedBy to
# why
- to show the full error stack
# what changed
- added causedBy to the stagehand default error class
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds causedBy to StagehandDefaultError to retain the underlying error
and make full stacks easier to debug.
- **New Features**
- StagehandDefaultError now sets causedBy when constructed with Error or
StagehandError.
- Keeps existing message format; no breaking changes.
<sup>Written for commit ce21a92.
Summary will update automatically on new commits.</sup>
<!-- End of auto-generated description by cubic. -->StagehandDefaultError (#1363)1 parent f26333e commit 223e158
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
0 commit comments