add reports about hook errors for all hook types

git-svn-id: http://emdebian.org/svn/current@8461 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2013-07-26 14:08:57 +00:00
parent ab99270f61
commit e971dbc042

View file

@ -733,6 +733,7 @@ sub run_native_hooks_start {
my $hookret = system ("$hookscript $dir start");
$hookret >>= 8;
if ($hookret != 0) {
printf (_g("I: run-native hook start '%s' reported an error: %d\n"), basename($hookscript), $hookret);
$warn_count += abs($hookret);
}
}
@ -750,6 +751,7 @@ sub run_native_hooks_end {
my $hookret = system ("$hookscript $dir end");
$hookret >>= 8;
if ($hookret != 0) {
printf (_g("I: run-native hook end '%s' reported an error: %d\n"), basename($hookscript), $hookret);
$warn_count += abs($hookret);
}
}
@ -767,6 +769,7 @@ sub run_completion_hooks {
my $hookret = system ("$hookscript $dir");
$hookret >>= 8;
if ($hookret != 0) {
printf (_g("I: run-completion hook '%s' reported an error: %d\n"), basename($hookscript), $hookret);
$warn_count += abs($hookret);
}
}