Commit 818090e
Use TracePoint(:raise) for lazy loading error enhancer gems
Load error enhancer gems on first exception raise using
TracePoint(:raise). The TracePoint is disabled after first
invocation, so there is zero overhead after loading.
Rescue ThreadError since require can't be called from trap
context (e.g., exit inside a signal handler).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 538c28b commit 818090e
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | | - | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | | - | |
44 | | - | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | | - | |
48 | | - | |
| 52 | + | |
49 | 53 | | |
0 commit comments