From e971dbc042647f7f96c0a91c73046b0b63ed9cb7 Mon Sep 17 00:00:00 2001 From: codehelp Date: Fri, 26 Jul 2013 14:08:57 +0000 Subject: [PATCH] add reports about hook errors for all hook types git-svn-id: http://emdebian.org/svn/current@8461 563faec7-e20c-0410-992a-a66f704d0ccd --- multistrap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/multistrap b/multistrap index c996233..30dd404 100755 --- a/multistrap +++ b/multistrap @@ -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); } }