Commit 4e098d7
committed
refactor: improve exception handling in CLI entry points
- Add debug logging when import.meta is not available (CommonJS/Jest environment)
- Only logs when DEBUG environment variable is set to avoid noise
- Addresses SonarCloud code smells about empty catch blocks
- Makes intentional error suppression more explicit
- Helps with troubleshooting when needed1 parent 787d7c2 commit 4e098d7
File tree
2 files changed
+10
-2
lines changed- src/cloudevents/tools/generator
- docs-generator
- readme-generator
2 files changed
+10
-2
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 | | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
0 commit comments