Commit a8005fc
Use Exception#detailed_message hook for lazy loading error enhancer gems
Replace direct gem loading with prepending an Exception::DetailedMessage
module that loads the gems on first detailed_message call, then removes
itself from the method chain to avoid double dispatch.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 538c28b commit a8005fc
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | | - | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | | - | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
0 commit comments