diff options
author | sarah <993273596@qq.com> | 2018-11-28 04:08:22 +0800 |
---|---|---|
committer | Jose <pepone@users.noreply.github.com> | 2018-11-27 21:08:22 +0100 |
commit | 14bcb3f730fdffe1d49f2ae9596fe800c8fbe075 (patch) | |
tree | 3e13a510065298acb52b6379483128fd6e770c16 /cpp | |
parent | Sign PHP Windows DLLs (diff) | |
download | ice-14bcb3f730fdffe1d49f2ae9596fe800c8fbe075.tar.bz2 ice-14bcb3f730fdffe1d49f2ae9596fe800c8fbe075.tar.xz ice-14bcb3f730fdffe1d49f2ae9596fe800c8fbe075.zip |
Add "error" in static text when handling IceUtilInternal::BadOptException (#307)
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/Ice/invoke/Server.cpp | 2 | ||||
-rw-r--r-- | cpp/test/IceStorm/rep1/Sub.cpp | 2 | ||||
-rw-r--r-- | cpp/test/IceStorm/rep1/Subscriber.cpp | 2 | ||||
-rw-r--r-- | cpp/test/IceStorm/stress/Publisher.cpp | 2 | ||||
-rw-r--r-- | cpp/test/IceStorm/stress/Subscriber.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/cpp/test/Ice/invoke/Server.cpp b/cpp/test/Ice/invoke/Server.cpp index 42cc9a9d960..10ca5858236 100644 --- a/cpp/test/Ice/invoke/Server.cpp +++ b/cpp/test/Ice/invoke/Server.cpp @@ -99,7 +99,7 @@ Server::run(int argc, char** argv) } catch(const IceUtilInternal::BadOptException& e) { - cout << argv[0] << ": " << e.reason << endl; + cout << argv[0] << ": error: " << e.reason << endl; throw; } bool array = opts.isSet("array"); 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()); } diff --git a/cpp/test/IceStorm/stress/Publisher.cpp b/cpp/test/IceStorm/stress/Publisher.cpp index 65cfb870944..03a25cd84d7 100644 --- a/cpp/test/IceStorm/stress/Publisher.cpp +++ b/cpp/test/IceStorm/stress/Publisher.cpp @@ -41,7 +41,7 @@ Publisher::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/stress/Subscriber.cpp b/cpp/test/IceStorm/stress/Subscriber.cpp index 4aef857a90b..9c0a2fc83cd 100644 --- a/cpp/test/IceStorm/stress/Subscriber.cpp +++ b/cpp/test/IceStorm/stress/Subscriber.cpp @@ -330,7 +330,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()); } |