summaryrefslogtreecommitdiff
path: root/lib/File/CheckTree.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/File/CheckTree.pm')
-rw-r--r--lib/File/CheckTree.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/File/CheckTree.pm b/lib/File/CheckTree.pm
index a39308b6c9..dca7f6aff3 100644
--- a/lib/File/CheckTree.pm
+++ b/lib/File/CheckTree.pm
@@ -137,13 +137,13 @@ sub valmess {
$mess =~ s/ does not / should not / ||
$mess =~ s/ not / /;
}
- print STDERR $mess,"\n";
}
else {
$this =~ s/\$file/'$file'/g;
- print STDERR "Can't do $this.\n";
+ $mess = "Can't do $this.\n";
}
- if ($disposition eq 'die') { exit 1; }
+ die "$mess\n" if $disposition eq 'die';
+ warn "$mess\n";
++$warnings;
}