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.
pull/1502/head
Paul Sokolovsky 2015-10-11 11:09:57 +03:00
rodzic 95b352064e
commit 53ca6ae1f3
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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'])