Fix but in OCUtility.cpp, exception information string wasn't being included.
authorJesse Williamson <jesse.f.williamson@intel.com>
Fri, 10 Oct 2014 23:25:08 +0000 (16:25 -0700)
committerJesse Williamson <jesse.f.williamson@intel.com>
Fri, 10 Oct 2014 23:25:49 +0000 (16:25 -0700)
Change-Id: I89a20e6411220eb3be4604a8b8c12e5a6621c644

src/OCUtilities.cpp

index 1162522..6916bb7 100644 (file)
@@ -192,6 +192,7 @@ OCStackResult result_guard(const OCStackResult r)
     case OC_STACK_INVALID_METHOD:
     case OC_STACK_INVALID_PARAM:
     case OC_STACK_INVALID_OBSERVE_PARAM:
+        os << "result_guard(): " << r << ": " << OCException::reason(r);
         throw OCException(os.str(), r);
 
     /* Non-exceptional failures or success: */