From: Adam Dickmeiss Date: Sat, 29 Apr 2006 08:51:54 +0000 (+0000) Subject: Use stderr for errors X-Git-Tag: METAPROXY.1.0.3~22 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=5cb507c826353f8d11646d2f6d30de9f8bd3be46;p=metaproxy-moved-to-github.git Use stderr for errors --- diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index d5e5d1f..4ffcb6a 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -1,4 +1,4 @@ -/* $Id: metaproxy_prog.cpp,v 1.4 2006-04-29 08:51:00 adam Exp $ +/* $Id: metaproxy_prog.cpp,v 1.5 2006-04-29 08:51:54 adam Exp $ Copyright (c) 2005-2006, Index Data. %LICENSE% @@ -79,7 +79,7 @@ int main(int argc, char **argv) pack.router(router).move(); } catch (std::runtime_error &e) { - std::cout << "std::runtime error: " << e.what() << "\n"; + std::cerr << "std::runtime error: " << e.what() << "\n"; std::exit(1); } xmlFreeDoc(doc); @@ -94,7 +94,7 @@ int main(int argc, char **argv) std::exit(1); } catch (std::runtime_error &e) { - std::cout << "std::runtime error: " << e.what() << "\n"; + std::cerr << "std::runtime error: " << e.what() << "\n"; std::exit(1); } catch ( ... ) {