diff options
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()); } } |