Skip to content
  • Geoff Lawler's avatar
    merror: include err in detail if it exists. · 895e83f0
    Geoff Lawler authored and Ryan Goodfellow's avatar Ryan Goodfellow committed
    When passing errors back through the API, append the wrapped error
    message in the errror detail. More detail is better.
    
    Example:
    ```
    glawler@river:~/integrated$ mergetb compile next.py
    Status Code: 400
    Error: Uncategorized Error
    Detail: reticulation error
    Timestamp: 2020-03-17 18:38:44.796497288 +0000 UTC m=+122.662407102
    Type: https://mergetb.org/errors/uncategorized-error
    glawler@river:~/integrated$ mergetb compile next.py
    Status Code: 400
    Error: Uncategorized Error
    Detail: reticulation error: Error adding static routes to the model: No addresses on endpoint a0.0
    Timestamp: 2020-03-17 18:43:51.966373516 +0000 UTC m=+201.032820535
    Type: https://mergetb.org/errors/uncategorized-error
    glawler@river:~/integrated$
    ```
    895e83f0