Skip to content

Commit

Permalink
Include set name in error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Dec 11, 2024
1 parent e002b66 commit bf139b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ bool Command::do_for(const std::string& set, const ParsedCommandline& arguments,
}
catch (std::exception& ex) {
cleanup();
fprintf(stderr, "%s: %s\n", ProgramName::get().c_str(), ex.what());
fprintf(stderr, "%s: ", ProgramName::get().c_str());
if (multi_set_invocation) {
fprintf(stderr, "%s: ", set.c_str());
}
fprintf(stderr, "%s\n", ex.what());
return false;
}
}

0 comments on commit bf139b9

Please sign in to comment.