When we get a SyntaxError from readJson, the error object itself will be decorated/modified for better printing. (every other case still behaves the same)
In the duo(1) CLI, it will treat the decorated SyntaxError as a special-case, and print w/o a stack trace. Instead, it includes the error and filename relative to pwd. I thought about using root instead, but figured since we were printing on the CLI, it would make more sense to be relative to the pwd.
When we get a
SyntaxError
fromreadJson
, the error object itself will be decorated/modified for better printing. (every other case still behaves the same)In the
duo(1)
CLI, it will treat the decoratedSyntaxError
as a special-case, and print w/o a stack trace. Instead, it includes the error and filename relative topwd
. I thought about using root instead, but figured since we were printing on the CLI, it would make more sense to be relative to thepwd
.This fixes #408