Skip to content

Commit

Permalink
Include exception message upon UnableToProcess in SCPs
Browse files Browse the repository at this point in the history
  • Loading branch information
lamyj committed Aug 12, 2016
1 parent 87d8b17 commit 1bfe8f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/odil/FindSCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ ::operator()(message::Message const & message)
}
catch(odil::Exception const & e)
{
status_fields.add(registry::ErrorComment, {e.what()});
final_status = message::CFindResponse::UnableToProcess;
}

Expand Down
3 changes: 2 additions & 1 deletion src/odil/GetSCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ ::operator()(message::Message const & message)
final_status = e.status;
status_fields = e.status_fields;
}
catch(odil::Exception const &)
catch(odil::Exception const & e)
{
status_fields.add(registry::ErrorComment, {e.what()});
final_status = message::CGetResponse::UnableToProcess;
}

Expand Down
3 changes: 2 additions & 1 deletion src/odil/MoveSCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ ::operator()(message::Message const & message)
final_status = e.status;
status_fields = e.status_fields;
}
catch(odil::Exception const &)
catch(odil::Exception const & e)
{
status_fields.add(registry::ErrorComment, {e.what()});
final_status = message::CMoveResponse::UnableToProcess;
}

Expand Down

0 comments on commit 1bfe8f3

Please sign in to comment.