Fix install hook error reporting.