浏览代码

log exact errors when plugin install fails

Eugene 4 月之前
父节点
当前提交
c8aea9d8e0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tabby-plugin-manager/src/components/pluginsSettingsTab.component.ts

+ 2 - 0
tabby-plugin-manager/src/components/pluginsSettingsTab.component.ts

@@ -100,6 +100,7 @@ export class PluginsSettingsTabComponent {
             this.busy.delete(plugin.name)
             this.config.requestRestart()
         } catch (err) {
+            console.error('Error installing plugin', plugin.name, err)
             this.erroredPlugin = plugin.name
             this.errorMessage = err
             this.busy.delete(plugin.name)
@@ -114,6 +115,7 @@ export class PluginsSettingsTabComponent {
             this.busy.delete(plugin.name)
             this.config.requestRestart()
         } catch (err) {
+            console.error('Error uninstalling plugin', plugin.name, err)
             this.erroredPlugin = plugin.name
             this.errorMessage = err
             this.busy.delete(plugin.name)