#1840 CompoundErrors should show their tracebacks

v1.0.0
closed
sf-1 (616)
General
nobody
2015-08-20
2011-03-30
No

Error notification emails that end like this aren't very helpful, since the traceback object is not shown:

Module allura.tasks.index_tasks:32 in add_artifacts
<<                  exceptions.append(sys.exc_info())
           if exceptions:
               raise CompoundError(*exceptions)

       @task
>>  raise CompoundError(*exceptions)
CompoundError: (<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'artifact'",), <traceback object at 0x99aa680>)

Related

Tickets: #1841

Discussion

  • Rick Copeland - 2011-03-31
    • status: open --> in-progress
    • assigned_to: Rick Copéland
    • size: --> 1
     
  • Rick Copeland - 2011-03-31

    We can show the traceback if there's only one exception. Otherwise we'll be stuck with the compound error traceback.

     
  • Rick Copeland - 2011-03-31
    • status: in-progress --> code-review
    • assigned_to: Rick Copéland --> Jenny Steele
     
  • Jenny Steele - 2011-03-31
    • status: code-review --> closed
     

Log in to post a comment.