Skip to content

Commit

Permalink
Merge pull request #37 from Workshape/bug/string-errors
Browse files Browse the repository at this point in the history
Correctly log String errors
  • Loading branch information
tancredi committed Jul 17, 2018
2 parents d5f5bfb + f85154e commit 554b39e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/icon-font-generator
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function run(options) {
*/
function fail(err) {
if (typeof err === 'string' || err instanceof errors.ValidationError) {
console.error(err.message.red)
console.error(err.red || err.message.red)
process.exit()
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "icon-font-generator",
"version": "2.1.7",
"version": "2.1.8",
"description": "Easy-to-use, pre-configured cli tool to generate webfont icon kits from a bunch of .svg files",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 554b39e

Please sign in to comment.