diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-10 21:56:32 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-10 21:56:32 +0000 |
commit | 8bc95821a3163f119f5e44ff7d6510cde734ea4b (patch) | |
tree | 3e6b89c017bce15ec8c81db9931ec46aecb897c8 /cpp/src/IcePack/Parser.cpp | |
parent | more fixes (diff) | |
download | ice-8bc95821a3163f119f5e44ff7d6510cde734ea4b.tar.bz2 ice-8bc95821a3163f119f5e44ff7d6510cde734ea4b.tar.xz ice-8bc95821a3163f119f5e44ff7d6510cde734ea4b.zip |
more exception stuff
Diffstat (limited to 'cpp/src/IcePack/Parser.cpp')
-rw-r--r-- | cpp/src/IcePack/Parser.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/cpp/src/IcePack/Parser.cpp b/cpp/src/IcePack/Parser.cpp index eeb73637a69..f489c698e0b 100644 --- a/cpp/src/IcePack/Parser.cpp +++ b/cpp/src/IcePack/Parser.cpp @@ -76,7 +76,9 @@ IcePack::Parser::add(const list<string>& args) } catch(const LocalException& ex) { - error(ex.toString()); + ostringstream s; + s << ex; + error(s.str()); } } @@ -95,7 +97,9 @@ IcePack::Parser::remove(const list<string>& args) } catch(const LocalException& ex) { - error(ex.toString()); + ostringstream s; + s << ex; + error(s.str()); } } @@ -127,7 +131,9 @@ IcePack::Parser::listAll() } catch(const LocalException& ex) { - error(ex.toString()); + ostringstream s; + s << ex; + error(s.str()); } } @@ -140,7 +146,9 @@ IcePack::Parser::shutdown() } catch(const LocalException& ex) { - error(ex.toString()); + ostringstream s; + s << ex; + error(s.str()); } } |