]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/serialization/src/archive_exception.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / serialization / src / archive_exception.cpp
index 8fcc6eeb08c8054c38c213f45501ece87f1d47b7..729a4edb255da36e0890241102d3e7e2d530efc1 100644 (file)
@@ -77,6 +77,14 @@ archive_exception::archive_exception(
         break;
     case input_stream_error:
         length = append(length, "input stream error");
+        if(NULL != e1){
+            length = append(length, "-");
+            length = append(length, e1);
+        }
+        if(NULL != e2){
+            length = append(length, "-");
+            length = append(length, e2);
+        }
         break;
     case invalid_class_name:
         length = append(length, "class name too long");
@@ -105,6 +113,14 @@ archive_exception::archive_exception(
         break;
     case output_stream_error:
         length = append(length, "output stream error");
+        if(NULL != e1){
+            length = append(length, "-");
+            length = append(length, e1);
+        }
+        if(NULL != e2){
+            length = append(length, "-");
+            length = append(length, e2);
+        }
         break;
     default:
         BOOST_ASSERT(false);