Commit ff8313c
src: throw error in LoadBuiltinModuleSource when reading fails
- Move the file reading code in LoadBuiltinModuleSource into
util.h so that it can be reused by other C++ code, and
return an error code from it when there is a failure for
the caller to generate an error.
- Throw an error when reading local builtins fails in
LoadBulitinModuleSource.
PR-URL: #38904
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent 99161b0 commit ff8313cCopy full SHA for ff8313c
File tree
Expand file treeCollapse file tree
3 files changed
+47
-25
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
3 files changed
+47
-25
lines changedOpen diff view settings
Collapse file
+9-25Lines changed: 9 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
205 | 205 | |
206 | 206 | |
207 | 207 | |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
214 | | - |
215 | | - |
216 | | - |
217 | | - |
218 | | - |
219 | | - |
220 | 208 | |
221 | | - |
222 | | - |
223 | | - |
224 | | - |
225 | | - |
226 | | - |
227 | | - |
228 | | - |
229 | | - |
230 | | - |
231 | | - |
232 | | - |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
233 | 218 | |
234 | | - |
235 | 219 | |
236 | 220 | |
237 | 221 | |
|
Collapse file
+34Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
221 | 221 | |
222 | 222 | |
223 | 223 | |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
224 | 258 | |
225 | 259 | |
226 | 260 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
813 | 813 | |
814 | 814 | |
815 | 815 | |
| 816 | + |
| 817 | + |
| 818 | + |
| 819 | + |
816 | 820 | |
817 | 821 | |
818 | 822 | |
|
0 commit comments