summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r--cpp/src/Ice/Exception.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index 1220cc8b76e..5909ed64524 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -82,8 +82,8 @@ throwUOE(const string& expectedType, const ValuePtr& v)
string type = v->ice_id();
throw Ice::UnexpectedObjectException(__FILE__, __LINE__,
- "expected element of type `" + expectedType + "' but received '" +
- type, type, expectedType);
+ "expected element of type `" + expectedType + "' but received `" +
+ type + "'", type, expectedType);
}
void