Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
urmi-21 committed Nov 27, 2020
1 parent 90e36cd commit 970f572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
6 changes: 3 additions & 3 deletions pyrpipe/pyrpipe_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ def execute_command(cmd,verbose=False,quiet=False,logs=True,dryrun=False,objecti
return True
else:
#print the output
print("Following error occured executing above command (return code={}):".format(str(exitCode)))
print("STDOUT:\n"+stdout)
print("STDERR:\n"+stderr)
pu.print_boldred("Following error occured executing above command (return code={}):".format(str(exitCode)))
pu.print_boldred("STDOUT:\n"+stdout)
pu.print_boldred("STDERR:\n"+stderr)
return False
#handle exceptions
except OSError as e:
Expand Down
16 changes: 0 additions & 16 deletions pyrpipe/pyrpipe_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@




class Colors:
"""
Colors used for printing messages.
"""
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
LightMagenta = "\033[95m"
LightYellow = "\033[93m"
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'

def print_boldred(text):
"""Print in bold red font
Expand Down

0 comments on commit 970f572

Please sign in to comment.