@gedit/command
Advanced tools
Comparing version 0.1.63 to 0.1.64
@@ -340,3 +340,9 @@ "use strict"; | ||
case 3: | ||
argsMessage = args && args.length > 0 ? " (args: ".concat(JSON.stringify(args), ")") : ''; | ||
argsMessage = ''; | ||
try { | ||
argsMessage = args && args.length > 0 ? " (args: ".concat(JSON.stringify(args), ")") : ''; | ||
} | ||
catch (e) { | ||
argsMessage = args && args.length > 0 ? " (args: ".concat(args, ")") : ''; | ||
} | ||
// eslint-disable-next-line max-len | ||
@@ -343,0 +349,0 @@ throw Object.assign(new Error("The command '".concat(commandId, "' cannot be executed. There are no active handlers available for the command.").concat(argsMessage)), { code: 'NO_ACTIVE_HANDLER' }); |
{ | ||
"name": "@gedit/command", | ||
"version": "0.1.63", | ||
"version": "0.1.64", | ||
"license": "MIT", | ||
@@ -24,3 +24,3 @@ "main": "lib/common/index", | ||
}, | ||
"gitHead": "b63ded2ca7a5d825937e4c58fb0b17d471bfb315" | ||
"gitHead": "ab65209853e8f4806908425345aedaaad8ba08e2" | ||
} |
@@ -333,3 +333,8 @@ /******************************************************************************** | ||
} | ||
const argsMessage = args && args.length > 0 ? ` (args: ${JSON.stringify(args)})` : ''; | ||
let argsMessage = ''; | ||
try { | ||
argsMessage = args && args.length > 0 ? ` (args: ${JSON.stringify(args)})` : ''; | ||
} catch (e) { | ||
argsMessage = args && args.length > 0 ? ` (args: ${args})` : ''; | ||
} | ||
// eslint-disable-next-line max-len | ||
@@ -336,0 +341,0 @@ throw Object.assign(new Error(`The command '${commandId}' cannot be executed. There are no active handlers available for the command.${argsMessage}`), {code: 'NO_ACTIVE_HANDLER'}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
89745
1666