Commit 2412906
Provide less cryptic error for missing systemlib sections (#9566)
Summary:
If a new extension systemlib isn't wired up with the build system, its unit emitters and decls won't be embedded in the HHVM binary, causing a cryptic crash when trying to run Hack code ("Invalid varint value: too few bytes."). One then has to fire up a debugger to determine what systemlib is missing.
Instead, raise a more informative error if a specific systemlib was not found in the binary.
Split from #9564.
Pull Request resolved: #9566
Reviewed By: ricklavoie
Differential Revision: D67874442
fbshipit-source-id: 876fe61ff08fd05a311659a44c2b0a19ea878f941 parent b3ad3f1 commit 2412906
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
262 | 267 | | |
263 | 268 | | |
264 | 269 | | |
| |||
0 commit comments