Skip to content

Commit

Permalink
Output error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bkille committed May 28, 2020
1 parent 1755ba2 commit c1c4efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Parsnp.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ def run_command(command,ignorerc=0):
p = subprocess.Popen(command, shell=True, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE,close_fds=True,executable="/bin/bash")
fstdout,fstderr = p.communicate()
rc = p.returncode
if VERBOSE:
logging.debug(fstderr)
logging.debug(fstdout)
logging.debug(fstderr)

if rc != 0 and not SIGINT and not ignorerc and "rm " not in command and "ls " not in command and "unlink " not in command and "ln " not in command and "mkdir " not in command and "mv " not in command:
logger.error("""The following command failed:
Expand Down

0 comments on commit c1c4efc

Please sign in to comment.