Browse Source

fix: handle plugin initialization error

Log error instead of throwing the error

fix #238

Signed-off-by: Pranav C Balan <pranavxc@gmail.com>
pull/251/head
Pranav C Balan 3 years ago
parent
commit
770741f823
  1. 7
      packages/nocodb/src/lib/noco/plugins/NcPluginMgr.ts

7
packages/nocodb/src/lib/noco/plugins/NcPluginMgr.ts

@ -95,8 +95,11 @@ class NcPluginMgr {
pluginConfig.input = JSON.parse(pluginConfig.input);
}
await tempPlugin.init(pluginConfig?.input);
try {
await tempPlugin.init(pluginConfig?.input);
}catch (e){
console.log(`Plugin(${plugin?.title}) initialization failed : ${e.message}`)
}
}
}

Loading…
Cancel
Save