You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the command line is prepended to the error message in src/index.js L332-L340:
.catch(err=>{// jsdoc err might not be very useful when some arguments are// invalid. so, we'll prepend the full command, in case of an// error and re-throw.constcmd='jsdoc '+args.join(' ');err.message=err.message+' \nExecuted JSDoc Command: '+cmd+'\n'+'with JSON configuration: '+JSON.stringify(conf||{});throwerr;})
Would it be possible to provide an option to turn this off? That's more of a debugging issue 😊
The text was updated successfully, but these errors were encountered:
Sure but what's your use case? If you don't want it to throw, you'd still catch it. So you want to see the error but not the extra information in the message?
I'm working on a documentation framework called Phoenix that splits reading, parsing and writing in separate steps, basically. I need all parser error messages in a digestible format, so the command line is simply not relevant there. Currently, I'm usingerror.message.replace( /Executed JSDoc Command: [\s\S]*/, '' ), but I'm a little uncomfortable with a hard coded string in there that might change.
Currently, the command line is prepended to the error message in src/index.js L332-L340:
Would it be possible to provide an option to turn this off? That's more of a debugging issue 😊
The text was updated successfully, but these errors were encountered: