Skip to content

Commit

Permalink
Make linting failure message more clear
Browse files Browse the repository at this point in the history
Right now when a json file is not linted, the program just says
'Formatted $FILENAME' and exits - this doesn't make it particularly
clear what is wrong when a file is not linted.
This aims to make it more clear.
  • Loading branch information
anothersimulacrum committed Oct 6, 2019
1 parent 28221de commit 53d026a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/format/format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ int main( int argc, char *argv[] )
std::ofstream fout( filename, std::ios::binary | std::ios::trunc );
fout << out.str();
fout.close();
std::cout << filename << " needs to be linted" << std::endl;
std::cout << "Formatted " << filename << std::endl;
exit( EXIT_FAILURE );
}
Expand Down

0 comments on commit 53d026a

Please sign in to comment.