From 14bcb3f730fdffe1d49f2ae9596fe800c8fbe075 Mon Sep 17 00:00:00 2001 From: sarah <993273596@qq.com> Date: Wed, 28 Nov 2018 04:08:22 +0800 Subject: Add "error" in static text when handling IceUtilInternal::BadOptException (#307) --- cpp/test/IceStorm/rep1/Sub.cpp | 2 +- cpp/test/IceStorm/rep1/Subscriber.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/test/IceStorm/rep1') 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()); } -- cgit v1.2.3