coffee-fmt
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -81,3 +81,3 @@ var FrontendFactory = require('./frontend/FrontendFactory') | ||
} | ||
console.log(s); | ||
printf("%s", s); | ||
throw new Error(s); | ||
@@ -142,6 +142,6 @@ break; | ||
} catch (e) { | ||
console.log('***** Internal translator error *****'); | ||
console.log(e.stack); | ||
// console.log('***** Internal translator error *****'); | ||
// console.log(e.stack); | ||
throw e; | ||
} | ||
}; |
@@ -12,2 +12,3 @@ /** | ||
, EOL = require('../../constants').get("EOL") | ||
, EOF = require('../../constants').get("EOF") | ||
, extract | ||
@@ -91,2 +92,7 @@ , extractString | ||
} | ||
if (currentChar === EOF) { | ||
this.type = ERROR | ||
this.value = "Unterminated string literal." | ||
return null; | ||
} | ||
currentChar = this.nextChar(); | ||
@@ -110,2 +116,7 @@ } | ||
} | ||
if (currentChar === EOF) { | ||
this.type = ERROR | ||
this.value = "Unterminated string literal." | ||
return null; | ||
} | ||
currentChar = this.nextChar(); | ||
@@ -112,0 +123,0 @@ } |
{ | ||
"name": "coffee-fmt", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "a `gofmt` inspired Coffeescript formatter/beautifier.", | ||
@@ -5,0 +5,0 @@ "author": "Steven R. Terpe <srterpe@gmail.com> (https://github.com/sterpe)", |
@@ -32,3 +32,7 @@ # coffee-fmt | ||
coffee = fmt.format(coffee, options); | ||
try { | ||
coffee = fmt.format(coffee, options); | ||
} catch (e) { | ||
//Whoops...something went wrong, error details logged to console. | ||
} | ||
@@ -35,0 +39,0 @@ console.log(coffee); |
Sorry, the diff of this file is not supported yet
60271
1383
41