Update api/src/plugins/plugins.service.ts

This commit is contained in:
Med Marrouchi 2025-01-03 16:06:56 +01:00 committed by GitHub
parent 1c613790ea
commit 7e116fabd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ export class PluginService<T extends BasePlugin = BasePlugin> {
const registry = this.registry.get(type) as Map<PluginName, T>;
if (registry.has(name)) {
throw new InternalServerErrorException(
`setPlugin: Unable to setPlugin with name ${name} of type ${type} (duplicate names)`,
`Unable to setPlugin() with name ${name} of type ${type} (possible duplicate)`,
);
}
registry.set(name, plugin);