summaryrefslogtreecommitdiff
path: root/cpp/test/IceStorm/rep1
diff options
context:
space:
mode:
authorsarah <993273596@qq.com>2018-11-28 04:08:22 +0800
committerJose <pepone@users.noreply.github.com>2018-11-27 21:08:22 +0100
commit14bcb3f730fdffe1d49f2ae9596fe800c8fbe075 (patch)
tree3e13a510065298acb52b6379483128fd6e770c16 /cpp/test/IceStorm/rep1
parentSign PHP Windows DLLs (diff)
downloadice-14bcb3f730fdffe1d49f2ae9596fe800c8fbe075.tar.bz2
ice-14bcb3f730fdffe1d49f2ae9596fe800c8fbe075.tar.xz
ice-14bcb3f730fdffe1d49f2ae9596fe800c8fbe075.zip
Add "error" in static text when handling IceUtilInternal::BadOptException (#307)
Diffstat (limited to 'cpp/test/IceStorm/rep1')
-rw-r--r--cpp/test/IceStorm/rep1/Sub.cpp2
-rw-r--r--cpp/test/IceStorm/rep1/Subscriber.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/IceStorm/rep1/Sub.cpp b/cpp/test/IceStorm/rep1/Sub.cpp
index 2b6d468538b..38425012c00 100644
--- a/cpp/test/IceStorm/rep1/Sub.cpp
+++ b/cpp/test/IceStorm/rep1/Sub.cpp
@@ -49,7 +49,7 @@ Sub::run(int argc, char** argv)
catch(const IceUtilInternal::BadOptException& e)
{
ostringstream os;
- os << argv[0] << ": " << e.reason;
+ os << argv[0] << ": error: " << e.reason;
throw invalid_argument(os.str());
}
diff --git a/cpp/test/IceStorm/rep1/Subscriber.cpp b/cpp/test/IceStorm/rep1/Subscriber.cpp
index c97b122b5a3..22bd2ad7397 100644
--- a/cpp/test/IceStorm/rep1/Subscriber.cpp
+++ b/cpp/test/IceStorm/rep1/Subscriber.cpp
@@ -95,7 +95,7 @@ Subscriber::run(int argc, char** argv)
catch(const IceUtilInternal::BadOptException& e)
{
ostringstream os;
- os << argv[0] << ": " << e.reason;
+ os << argv[0] << ": error: " << e.reason;
throw invalid_argument(os.str());
}