When an ActionError is raised during pre_install or on_install action, the error is not being shown. Instead an error is being raised. This fixes that.