diff options
Diffstat (limited to 'py')
-rw-r--r-- | py/makeqstrdata.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index d30cf3ec4e..e8adb0cbb6 100644 --- a/py/makeqstrdata.py +++ b/py/makeqstrdata.py @@ -80,6 +80,10 @@ def do_work(infiles): # add the qstr to the list, with order number to retain original order in file qstrs[ident] = (len(qstrs), ident, qstr) + if not qcfgs: + sys.stderr.write("ERROR: Empty preprocessor output - check for errors above\n") + sys.exit(1) + # get config variables cfg_bytes_len = int(qcfgs['BYTES_IN_LEN']) cfg_bytes_hash = int(qcfgs['BYTES_IN_HASH']) |