Skip to content

Commit

Permalink
Fix typo in unknown argument warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Jun 26, 2018
1 parent 2e73a02 commit 2a4dfec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/lessc
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,12 @@ function processPluginQueue() {
case 'rewrite-urls':
if (match[2] === 'all' || match[2] === 'local') {
options.rewriteUrls = match[2];
} if (match[2] === 'off') {
} else if (match[2] === 'off') {
options.rewriteUrls = false;
} else if (!match[2]) {
options.rewriteUrls = 'all';
} else {
console.error('Unkown rewrite-urls argument ' + match[2]);
console.error('Unknown rewrite-urls argument ' + match[2]);
continueProcessing = false;
process.exitCode = 1;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/less-rhino/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function writeFile(filename, content) {
} else if (!match[2]) {
options.rewriteUrls = 'all';
} else {
print('Unkown rewrite-urls argument ' + match[2]);
print('Unknown rewrite-urls argument ' + match[2]);
continueProcessing = false;
currentErrorcode = 1;
}
Expand Down

0 comments on commit 2a4dfec

Please sign in to comment.