mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
782eac7b48
In bug 1601414, the JSON parsing and validating code was refactored into a single method. However, the `return 1` in case of error was carried over. That was correct in the previous version because that 1 was being passed to `exit()` later on. However, we were now returning 1 to callers of `read_json` when the schema did not match, resulting in an opaque unrelated error (`TypeError: 'int' object is not subscriptable`). Now `read_json` is correctly raising an exception so its callers know when it fails. Differential Revision: https://phabricator.services.mozilla.com/D62361 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android-build | ||
condprof | ||
custom-v8 | ||
debian7-mozjs-rust-build | ||
debian10-test | ||
debian10-test-iris | ||
debian-base | ||
debian-build | ||
debian-packages | ||
debian-raw | ||
decision | ||
desktop1604-test | ||
diffoscope | ||
fetch | ||
firefox-snap | ||
funsize-update-generator | ||
gdb-test | ||
github-sync | ||
image_builder | ||
index-task | ||
lint | ||
mingw32-build | ||
mozapkpublisher | ||
partner-repack | ||
periodic-updates | ||
pipfile-updates | ||
recipes | ||
static-analysis-build | ||
system-symbols-mac | ||
system-symbols-win | ||
tb-debian-mingw | ||
toolchain-build | ||
ubuntu1804-test | ||
update-verify | ||
valgrind-build | ||
visual-metrics | ||
webrender | ||
webrender-updater | ||
wgpu | ||
REGISTRY |