Skip to content

Commit

Permalink
Merge pull request #44 from Farsen976/fix/better-login
Browse files Browse the repository at this point in the history
chore: improve logs error on release manager plugin load
  • Loading branch information
greg0ire authored Oct 28, 2024
2 parents 56b0f4b + 1550934 commit 57a808f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/core/pluginManager/ReleasePluginManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('pluginManager', () => {
'@root/plugins/release/defaultReleaseManager'
)
).rejects.toThrow(
'Cannot load release manager plugin. Invalid path or plugin already loaded.'
'Cannot load release manager plugin. Invalid path or plugin already loaded. Plugin: defaultReleaseManager'
);
});
it('should return release manager by name', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/pluginManager/ReleasePluginManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class ReleasePluginManager {
'Cannot load release manager plugin. Invalid path or plugin already loaded.';
const releaseManagerName = path.split('/').pop()!;
if (this.instance.releaseManagers.has(releaseManagerName)) {
throw new Error(errMessage);
throw new Error(`${errMessage} Plugin: ${releaseManagerName}`);
}
try {
// import default export from the given path
Expand Down

0 comments on commit 57a808f

Please sign in to comment.