Closed dcsan closed 4 years ago
I had the same problem. The errors were annoying me in this format so I tweaked the compile command in bin/harp.js. I replaced line 148
console.log(JSON.stringify(errors, null, 2)
with
console.log(JSON.stringify(errors, null, 2) .replace(/\\n/g, "\n"))
and now my errors are a little easier to read (in my opinion).
{
"source": "Jade",
"dest": "HTML",
"filename": "C:\\dev\\git\\harptest\\_layout.jade",
"lineno": 4,
"name": "Error",
"message": "Matt's Jade error",
"stack": "doctype
html
head
link(rel=\"stylesheet\" href=\"/main.css\"
body
!= yield
"
}
for some reason output errors are in unreadable JSON with \n instead of formatted text is there a way to change this default?
harp -h
yields nothing