Add final status message to --validate(-schema) command in addition to the exit code
This commit is contained in:
parent
90d1aec2f2
commit
a8367c4bca
1 changed files with 5 additions and 0 deletions
|
@ -349,6 +349,11 @@ static int handle_validate_command(const std::string& file, abstract_validator&
|
|||
filesystem::scoped_istream stream = preprocess_file(file, &defines_map);
|
||||
config result;
|
||||
read(result, *stream, &validator);
|
||||
if(lg::broke_strict()) {
|
||||
std::cout << "validation failed\n";
|
||||
} else {
|
||||
std::cout << "validation succeeded\n";
|
||||
}
|
||||
return lg::broke_strict();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue