mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Error report: style issues
This commit is contained in:
parent
4de035e5ba
commit
5cfacc2e7a
@ -797,8 +797,7 @@ Options::Options()
|
|||||||
std::cout.rdbuf(strCout.rdbuf());
|
std::cout.rdbuf(strCout.rdbuf());
|
||||||
std::cerr.rdbuf(strCout.rdbuf());
|
std::cerr.rdbuf(strCout.rdbuf());
|
||||||
}
|
}
|
||||||
else
|
else if (indentLevel == "1")
|
||||||
if (indentLevel == "1")
|
|
||||||
logVerbosity = Verbosity::NiceReport;
|
logVerbosity = Verbosity::NiceReport;
|
||||||
else
|
else
|
||||||
logVerbosity = Verbosity::Full;
|
logVerbosity = Verbosity::Full;
|
||||||
|
@ -62,20 +62,20 @@ int main( int argc, char* argv[] )
|
|||||||
? boost::exit_success
|
? boost::exit_success
|
||||||
: results_collector.results( framework::master_test_suite().p_id ).result_code();
|
: results_collector.results( framework::master_test_suite().p_id ).result_code();
|
||||||
}
|
}
|
||||||
catch( framework::nothing_to_test const& ) {
|
catch (framework::nothing_to_test const&) {
|
||||||
return boost::exit_success;
|
return boost::exit_success;
|
||||||
}
|
}
|
||||||
catch( framework::internal_error const& ex ) {
|
catch (framework::internal_error const& ex) {
|
||||||
results_reporter::get_stream() << "Boost.Test framework internal error: " << ex.what() << std::endl;
|
results_reporter::get_stream() << "Boost.Test framework internal error: " << ex.what() << std::endl;
|
||||||
|
|
||||||
return boost::exit_exception_failure;
|
return boost::exit_exception_failure;
|
||||||
}
|
}
|
||||||
catch( framework::setup_error const& ex ) {
|
catch (framework::setup_error const& ex) {
|
||||||
results_reporter::get_stream() << "Test setup error: " << ex.what() << std::endl;
|
results_reporter::get_stream() << "Test setup error: " << ex.what() << std::endl;
|
||||||
|
|
||||||
return boost::exit_exception_failure;
|
return boost::exit_exception_failure;
|
||||||
}
|
}
|
||||||
catch( ... ) {
|
catch (...) {
|
||||||
results_reporter::get_stream() << "Boost.Test framework internal error: unknown reason" << std::endl;
|
results_reporter::get_stream() << "Boost.Test framework internal error: unknown reason" << std::endl;
|
||||||
|
|
||||||
return boost::exit_exception_failure;
|
return boost::exit_exception_failure;
|
||||||
|
Loading…
Reference in New Issue
Block a user