mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Direct more mundane failures to cerr as well.
This commit is contained in:
		
							parent
							
								
									245620bdc2
								
							
						
					
					
						commit
						d8f7051685
					
				| @ -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<string>(), 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; | ||||
| 			} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user