Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
chore: add scope to error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossantos74 committed Aug 7, 2024
1 parent 7fbb736 commit 6288215
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/launcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class Launcher extends Observable implements DefaultLauncher {
*/
public removeComponent = (component: Partial<BaseComponent>): void => {
if (!this.activeComponents.includes(component.name)) {
const message = `Component ${component.name} is not initialized yet.`;
const message = `[SuperViz] Component ${component.name} is not initialized yet.`;
this.logger.log(message);
console.error(message);
return;
Expand Down Expand Up @@ -216,20 +216,20 @@ export class Launcher extends Observable implements DefaultLauncher {
const verifications = [
{
isValid: isProvidedFeature,
message: `Component ${component.name} is not enabled in the room`,
message: `[SuperViz] Component ${component.name} is not enabled in the room`,
},
{
isValid: !this.isDestroyed,
message:
'Component can not be added because the superviz room is destroyed. Initialize a new room to add and use components.',
'[SuperViz] Component can not be added because the superviz room is destroyed. Initialize a new room to add and use components.',
},
{
isValid: !isComponentActive,
message: `Component ${component.name} is already active. Please remove it first`,
message: `[SuperViz] Component ${component.name} is already active. Please remove it first`,
},
{
isValid: componentLimit.canUse,
message: `You reached the limit usage of ${component.name}`,
message: `[SuperViz] You reached the limit usage of ${component.name}`,
},
];

Expand Down

0 comments on commit 6288215

Please sign in to comment.