Log error when DF exits non-successfully

develop
lethosor 2020-03-28 13:19:38 -04:00
parent 1c39ed1428
commit ef51996a2c
1 changed files with 1 additions and 1 deletions

@ -99,7 +99,7 @@ try:
if err:
print('WARN: DF produced stderr: ' + repr(err[:5000]))
if process.returncode != 0:
print('WARN: DF exited with ' + repr(process.returncode))
print('ERROR: DF exited with ' + repr(process.returncode))
finally:
print('\nRestoring original init.txt')
shutil.copyfile(init_txt_path + '.orig', init_txt_path)