aboutsummaryrefslogtreecommitdiff
path: root/py/makeqstrdata.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-11 11:09:57 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-11 11:09:57 +0300
commit53ca6ae1f362da99b5913505a53904d22f460c63 (patch)
treecb145412e0e02035bbca0e50d4693c129288f4ea /py/makeqstrdata.py
parent95b352064ea86f94158a1389a34aeedede01f6fb (diff)
py/makeqstrdata.py: Catch and report case of empty input file.
The usual cause would be that a cross-compiler for a port is not in PATH.
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r--py/makeqstrdata.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py
index d30cf3ec4..e8adb0cbb 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'])