Commit 9026f47
committed
refactor: replace empty catch blocks with descriptive comments
Empty catch blocks silently swallow errors, making debugging harder and
violating code quality best practices. This adds explanatory comments
to all empty catch blocks in core.ts and cli.ts, and replaces the
abrupt process.exit(1) in readScriptFromHttp with a proper Fail error
for consistent error handling.
Ref #13941 parent 97e975c commit 9026f47
2 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
250 | | - | |
| 252 | + | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1009 | 1011 | | |
1010 | 1012 | | |
1011 | 1013 | | |
| |||
1056 | 1058 | | |
1057 | 1059 | | |
1058 | 1060 | | |
| 1061 | + | |
| 1062 | + | |
1059 | 1063 | | |
1060 | 1064 | | |
1061 | 1065 | | |
1062 | | - | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
1063 | 1069 | | |
1064 | 1070 | | |
| 1071 | + | |
1065 | 1072 | | |
1066 | 1073 | | |
1067 | 1074 | | |
| 1075 | + | |
1068 | 1076 | | |
1069 | | - | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1070 | 1080 | | |
1071 | 1081 | | |
1072 | 1082 | | |
| |||
0 commit comments