summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-02-22 22:16:03 +0000
committerMarc Laukien <marc@zeroc.com>2003-02-22 22:16:03 +0000
commit18808c3fd9bb9050babb29141d76ccd06ece7965 (patch)
tree4b60d269d5656aa763480864d889d3dbf46aac80 /cpp/src/slice2cpp/Gen.cpp
parentfixed AMD exception bug (diff)
downloadice-18808c3fd9bb9050babb29141d76ccd06ece7965.tar.bz2
ice-18808c3fd9bb9050babb29141d76ccd06ece7965.tar.xz
ice-18808c3fd9bb9050babb29141d76ccd06ece7965.zip
fixed bug with exceptions propagating from ice_response()
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 1e9688b7f6f..4da25e138b0 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -3388,12 +3388,13 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
}
C << eb;
writeUnmarshalCode(C, outParams, ret);
- C << nl << "ice_response(" << args << ");";
C << eb;
C << nl << "catch(const ::Ice::Exception& __ex)";
C << sb;
C << nl << "ice_exception(__ex);";
+ C << nl << "return;";
C << eb;
+ C << nl << "ice_response(" << args << ");";
C << eb;
}