Skip to content

Commit

Permalink
fix(core): properly log invalid plugin configs (#3254)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Jun 15, 2023
1 parent 34752e8 commit 7a6d499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/core/src/util/plugin-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class PluginInterface implements IForgePluginInterface {
return new Plugin(opts);
}

throw new Error(`Expected plugin to either be a plugin instance or a { name, config } object but found ${plugin}`);
throw new Error(`Expected plugin to either be a plugin instance or a { name, config } object but found ${JSON.stringify(plugin)}`);
});
// TODO: fix hack
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 7a6d499

Please sign in to comment.