mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +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
|
return False
|
||||||
else:
|
else:
|
||||||
messages.error(request, _('Error installing packages: {details}')
|
messages.error(request, _('Error installing packages: {details}')
|
||||||
.format(details=exception.error_string))
|
.format(details=getattr(exception, 'error_string',
|
||||||
|
str(exception))))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user