diff --git a/lib/option.js b/lib/option.js index ca240c1ae..8f24cf696 100644 --- a/lib/option.js +++ b/lib/option.js @@ -337,7 +337,7 @@ function splitOptionFlags(flags) { // Check for unprocessed flag. Fail noisily rather than silently ignore. if (flagParts[0].startsWith('-')) { const unsupportedFlag = flagParts[0]; - const baseError = `option creation failed due to '${unsupportedFlag}' in option flags '${flags}':`; + const baseError = `option creation failed due to '${unsupportedFlag}' in option flags '${flags}'`; if (/^-[^-][^-]/.test(unsupportedFlag)) throw new Error( `${baseError}