From bf139b9c0ee16e35ebf45fdac6cec0d9c150a384 Mon Sep 17 00:00:00 2001 From: Dieter Baron Date: Wed, 11 Dec 2024 13:52:39 +0100 Subject: [PATCH] Include set name in error message. --- src/Command.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Command.cc b/src/Command.cc index 614fe13c..bc0a226d 100644 --- a/src/Command.cc +++ b/src/Command.cc @@ -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; } }