summaryrefslogtreecommitdiffstats
path: root/bin/guards.in
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2015-03-27 17:53:27 +0100
committerJean Delvare <jdelvare@suse.de>2015-04-24 16:40:28 +0200
commit996315aeb9e6ec7b178e044156e5ba284a5860e2 (patch)
tree8aece717a1196595fc5f6b9d0a467a8a0122b1d4 /bin/guards.in
parent9a7fbae0b556f2f4797b955dd32afccd77f36f3f (diff)
downloadquilt-996315aeb9e6ec7b178e044156e5ba284a5860e2.tar.gz
guards: Include the file name also in the "Not found" error
Diffstat (limited to 'bin/guards.in')
-rw-r--r--bin/guards.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/guards.in b/bin/guards.in
index 246855a..529cf52 100644
--- a/bin/guards.in
+++ b/bin/guards.in
@@ -166,7 +166,11 @@ if ($check) {
if (exists $files{$patch}) {
$files{$patch}++;
} else {
- print "Not found: $dir$patch\n";
+ if ($config eq '-') {
+ print "Not found: $dir$patch\n";
+ } else {
+ print "Not found in $config: $dir$patch\n";
+ }
$problems++;
}});