Debian Codegraph @

python/mozbuild/mozpack/test/support/minify_js_verify.py

raw
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 import sys
6
7 if len(sys.argv) != 4:
8 raise Exception("Usage: minify_js_verify <exitcode> <orig> <minified>")
9
10 retcode = int(sys.argv[1])
11
12 if retcode:
13 print("Error message", file=sys.stderr)
14
15 sys.exit(retcode)