Mercurial > hg > orthanc-stone
diff Framework/Loaders/LoaderStateMachine.cpp @ 840:47fc7919977d
Added details on errors in LoaderStateMachine + dummy change in loader.cpp
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sun, 09 Jun 2019 18:47:34 +0200 |
parents | df442f1ba0c6 |
children | a7351ad54960 |
line wrap: on
line diff
--- a/Framework/Loaders/LoaderStateMachine.cpp Mon Jun 03 14:37:17 2019 +0200 +++ b/Framework/Loaders/LoaderStateMachine.cpp Sun Jun 09 18:47:34 2019 +0200 @@ -107,7 +107,9 @@ void LoaderStateMachine::HandleExceptionMessage(const OracleCommandExceptionMessage& message) { LOG(ERROR) << "Error in the state machine, stopping all processing"; - Clear(); + LOG(ERROR) << "Error: " << message.GetException().What() << " Details: " << + message.GetException().GetDetails(); + Clear(); } @@ -124,7 +126,8 @@ } catch (Orthanc::OrthancException& e) { - LOG(ERROR) << "Error in the state machine, stopping all processing: " << e.What(); + LOG(ERROR) << "Error in the state machine, stopping all processing: " << + e.What() << " Details: " << e.GetDetails(); Clear(); } }