Fixes #20052: improve logging for faulty scripts
@@ -137,7 +137,7 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile):
module = self.get_module()
except Exception as e:
self.error = e
- logger.debug(f"Failed to load script: {self.python_name} error: {e}")
+ logger.error(f"Failed to load script: {self.python_name} error: {e}")
module = None
scripts = {}
@@ -121,6 +121,7 @@
<div class="alert alert-warning" role="alert">
<i class="mdi mdi-alert"></i>
{% blocktrans with module=module.name %}Could not load scripts from module {{ module }}{% endblocktrans %}
+ {% if module.error %}<code>{{ module.error }}</code>{% endif %}
</div>
{% endif %}