diff OrthancServer/ServerContext.cpp @ 2135:cadfe0a2a393

fix in the sample basic plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 13:42:33 +0100
parents ddc75c6c712d
children dd609a99d39a
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Wed Nov 09 12:04:09 2016 +0100
+++ b/OrthancServer/ServerContext.cpp	Wed Nov 09 13:42:33 2016 +0100
@@ -102,7 +102,8 @@
           catch (OrthancException& e)
           {
             LOG(ERROR) << "Error in the " << it->GetDescription() 
-                       << " callback while signaling a change: " << e.What();
+                       << " callback while signaling a change: " << e.What()
+                       << " (code " << e.GetErrorCode() << ")";
           }
         }
       }
@@ -222,7 +223,8 @@
           catch (OrthancException& e)
           {
             LOG(ERROR) << "Error in the " << it->GetDescription() 
-                       << " callback while receiving an instance: " << e.What();
+                       << " callback while receiving an instance: " << e.What()
+                       << " (code " << e.GetErrorCode() << ")";
             throw;
           }
         }
@@ -299,7 +301,8 @@
           catch (OrthancException& e)
           {
             LOG(ERROR) << "Error in the " << it->GetDescription() 
-                       << " callback while receiving an instance: " << e.What();
+                       << " callback while receiving an instance: " << e.What()
+                       << " (code " << e.GetErrorCode() << ")";
           }
         }
       }