Skip to content

Commit

Permalink
minor improvements for parsing and json output - see #55
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouqueau committed Oct 20, 2023
1 parent 77f052a commit 55819da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ typedef std::queue<std::string> ArgQueue;
static inline std::string safePop(ArgQueue &args)
{
if(args.empty()) {
fprintf(stderr, "unexpected end of command line\n");
fprintf(stderr, "Unexpected end of command line while parsing argument\n");
exit(1);
}

Expand Down
1 change: 1 addition & 0 deletions src/app/report_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ bool checkComplianceJsonSpec(Box const &file, SpecDesc const *spec, Json::Array
bool fail = false;
auto root = std::make_unique<Json::Object>();
root->content.push_back(std::make_unique<Json::Data>("specification", spec->name));
root->content.push_back(std::make_unique<Json::Data>("version", spec->caption));
auto successArray = std::make_unique<Json::Array>("successful_checks");
auto uncheckedArray = std::make_unique<Json::Array>("unchecked");
auto errorArray = std::make_unique<Json::Array>("errors");
Expand Down

0 comments on commit 55819da

Please sign in to comment.