Skip to content

Commit

Permalink
💬 レンダラでのプラグイン読み込み失敗時に失敗したファイルの名前を出す
Browse files Browse the repository at this point in the history
  • Loading branch information
ci7lus committed Jan 12, 2022
1 parent fa0d8b9 commit b1100af
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,19 @@ export const PluginLoader: React.VFC<{
openedPlugins.push(plugin)
}
} catch (error) {
console.error("[Plugin] 読み込みエラー:", error)
console.error(
"[Plugin] 読み込みエラー:",
pluginDatum.filePath,
error
)
}
})
)
await Promise.all(
openedPlugins.map(async (plugin) => {
console.info(
`[Plugin] セットアップ中: ${plugin.name} (${plugin.id}, ${plugin.version})`
)
try {
await plugin.setup({ plugins: openedPlugins })
plugin.sharedAtoms
Expand Down

0 comments on commit b1100af

Please sign in to comment.