mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
package: Fix showing error during pre/post install
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.
This commit is contained in:
parent
2879c9cedb
commit
b4c487f520
@ -263,7 +263,8 @@ def _should_show_install_view(request, package_names):
|
||||
return False
|
||||
else:
|
||||
messages.error(request, _('Error installing packages: {details}')
|
||||
.format(details=exception.error_string))
|
||||
.format(details=getattr(exception, 'error_string',
|
||||
str(exception))))
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user