Skip to content

Commit

Permalink
Log error when plugin fails to register
Browse files Browse the repository at this point in the history
CURA-11029
  • Loading branch information
wawanbreton committed Sep 18, 2023
1 parent 24ec6e6 commit d7600bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UM/PluginRegistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ def loadPlugin(self, plugin_id: str) -> None:
self.enablePlugin(plugin_id)
Logger.info(f"Loaded plugin {plugin_id} {plugin_version}")

except Exception:
except Exception as e:
Logger.log("w", "Plugin [%s] failed to register: %s", plugin_id, str(e))
self.removeCorruptedPluginMessage(plugin_id)

def _acceptedRemoveCorruptedPluginMessage(self, plugin_id: str, original_message: Message):
Expand Down

0 comments on commit d7600bc

Please sign in to comment.