Changeset 31742b8


Ignore:
Timestamp:
Sep 24, 2018, 9:41:26 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
073b969
Parents:
77d9370
Message:

python/lib/gen_external.py: always show errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_external.py

    r77d9370 r31742b8  
    106106    cpp_output = proc.stdout.read()
    107107    err_output = proc.stderr.read()
     108    if err_output:
     109        print("Warning: preprocessor produced errors or warnings:\n%s" % err_output)
    108110    if not cpp_output:
    109111        raise Exception("preprocessor output is empty:\n%s" % err_output)
    110     elif err_output:
    111         print("Warning: preprocessor produced warnings:\n%s" % err_output)
    112112    if not isinstance(cpp_output, list):
    113113        cpp_output = [l.strip() for l in cpp_output.decode('utf8').split('\n')]
Note: See TracChangeset for help on using the changeset viewer.