Comparing version 1.6.1 to 1.6.2
@@ -93,5 +93,5 @@ #!/usr/bin/env node | ||
return JSON.stringify(parsed,null,options.indent); | ||
return JSON.stringify(parsed, null, options.indent); | ||
} catch (e) { | ||
if ( options.forcePrettyPrint ) { | ||
if (options.forcePrettyPrint) { | ||
/* From https://github.com/umbrae/jsonlintdotcom: | ||
@@ -111,4 +111,4 @@ * If we failed to validate, run our manual formatter and then re-validate so that we | ||
} | ||
return formatted; | ||
process.exit(1); | ||
// force the pretty print before exiting | ||
console.log(formatted); | ||
} | ||
@@ -119,5 +119,4 @@ } else { | ||
} | ||
process.exit(1); | ||
} | ||
process.exit(1); | ||
} | ||
@@ -124,0 +123,0 @@ } |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"preferGlobal": true, | ||
@@ -14,0 +14,0 @@ "repository": { |
63086