mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Include command id in error message
This commit is contained in:
committed by
GitHub
parent
936fc3fdd9
commit
e70616c810
@@ -56,7 +56,7 @@ export class ExtHostCommands implements ExtHostCommandsShape {
|
||||
}
|
||||
|
||||
if (this._commands.has(id)) {
|
||||
throw new Error('command with id already exists');
|
||||
throw new Error(`command '${id}' already exists`);
|
||||
}
|
||||
|
||||
this._commands.set(id, { callback, thisArg, description });
|
||||
|
||||
Reference in New Issue
Block a user