Skip to content

Commit

Permalink
removed ruffus error output - was never useful
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiers committed Nov 7, 2012
1 parent 1e5e5a9 commit cfa58b9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions moa/backend/ruff/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,12 @@ def generate_data_map():
#caught here.
l.debug("Caught a Ruffus error!")
l.debug(str(e))
startOfError = "{{gray}}" + re.sub(r'\s+', " ", str(e))[:72].strip() + "...{{reset}}"
endOfError = "{{gray}}..." + re.sub(r'\s+', " ", str(e)).strip()[-72:] + \
"{{reset}}"
moa.ui.error("Caught a Ruffus error")
moa.ui.error(startOfError)
print endOfError
moa.ui.error(endOfError.replace('%', '%%'))
#startOfError = "{{gray}}" + re.sub(r'\s+', " ", str(e))[:72].strip() + "...{{reset}}"
#endOfError = "{{gray}}..." + re.sub(r'\s+', " ", str(e)).strip()[-72:] + \
# "{{reset}}"
moa.ui.error("Caught an execution error")
#moa.ui.error(startOfError)
#moa.ui.error(endOfError.replace('%', '%%'))
try:
#try to get some structured info & output that.
einfo = e[0][1].split('->')[0].split('=')[1].strip()
Expand Down

0 comments on commit cfa58b9

Please sign in to comment.