From 792b878315bddc15a925613d047e195926c740b4 Mon Sep 17 00:00:00 2001 From: Ryan Casey Date: Thu, 23 Apr 2015 09:42:01 -0700 Subject: [PATCH] Direct more mundane failures to cerr as well. --- solc/CommandLineInterface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 5e4c901f3..0cc1ab259 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -270,7 +270,7 @@ bool CommandLineInterface::parseArguments(int argc, char** argv) } catch (po::error const& _exception) { - cout << _exception.what() << endl; + cerr << _exception.what() << endl; return false; } if (m_args.count("combined-json")) @@ -279,7 +279,7 @@ bool CommandLineInterface::parseArguments(int argc, char** argv) for (string const& item: boost::split(requests, m_args["combined-json"].as(), boost::is_any_of(","))) if (!g_combinedJsonArgs.count(item)) { - cout << "Invalid option to --combined-json: " << item << endl; + cerr << "Invalid option to --combined-json: " << item << endl; return false; } } @@ -317,13 +317,13 @@ bool CommandLineInterface::processInput() auto path = boost::filesystem::path(infile); if (!boost::filesystem::exists(path)) { - cout << "Skipping non existant input file \"" << infile << "\"" << endl; + cerr << "Skipping non existant input file \"" << infile << "\"" << endl; continue; } if (!boost::filesystem::is_regular_file(path)) { - cout << "\"" << infile << "\" is not a valid file. Skipping" << endl; + cerr << "\"" << infile << "\" is not a valid file. Skipping" << endl; continue; }