Open fhd opened 2 years ago
I found this quite useful for debugging, but I suppose the errors were being swallowed for a reason, so it's behind an option.
Before and after this change, the following will simply output nothing:
echo '?' > invalid.jsx node bin/rch.js invalid.jsx
But after this change, running node bin/rch.js -e invalid.jsx will show the actual parsing error.
node bin/rch.js -e invalid.jsx
(Not sure who to add here)
Description of Pull Request
I found this quite useful for debugging, but I suppose the errors were being swallowed for a reason, so it's behind an option.
Test Case (Optional)
Before and after this change, the following will simply output nothing:
But after this change, running
node bin/rch.js -e invalid.jsx
will show the actual parsing error.Reviewer(s)
(Not sure who to add here)