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:
parent
ab99270f61
commit
e971dbc042
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue