server: Fix quoting in error message

In the error message about an invalid plugin command, only quote the
command name and not the rest of the error message after the command
name.
This commit is contained in:
Taavi Väänänen 2025-11-08 12:36:50 +02:00
commit be603c6bdc
No known key found for this signature in database
GPG key ID: EF242F709F912FBE

View file

@ -108,7 +108,7 @@ const addPluginCommand = (packageInfo: PackageInfo, command: any, obj: any) => {
return;
} else if (!obj || typeof obj.input !== "function") {
log.error(
`plugin ${packageInfo.packageName} tried to register command "${command} without a callback"`
`plugin ${packageInfo.packageName} tried to register command "${command}" without a callback`
);
return;
}