Fix ENOENT error message in CLI#3165
Merged
UziTech merged 10 commits intomarkedjs:masterfrom Jan 27, 2024
rzhade3:fix-error-stderr
Merged
Fix ENOENT error message in CLI#3165UziTech merged 10 commits intomarkedjs:masterfrom rzhade3:fix-error-stderr
UziTech merged 10 commits intomarkedjs:masterfrom
rzhade3:fix-error-stderr
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
UziTech
requested changes
Jan 18, 2024
Member
UziTech
left a comment
There was a problem hiding this comment.
Looks like some tests are failing. Can you also add a test for this so there is no regression in the future?
Contributor
Author
|
@UziTech I've fixed the failing tests and attempted to write a test to prevent regressions, but it looked like this part of the code is currently not well tested. I seem to be running into this error whenever I attempt to pass a file as an input to the tests, that I'd appreciate some help debugging:
|
Member
|
looks like the error was in the bin test framework |
UziTech
approved these changes
Jan 21, 2024
styfle
reviewed
Jan 25, 2024
styfle
reviewed
Jan 25, 2024
Co-authored-by: Steven <steven@ceriously.com>
This was referenced Jun 19, 2024
This was referenced Sep 9, 2024
This was referenced Sep 16, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Marked version: 11.1.1
Markdown flavor: n/a
Description
This PR fixes a slight bug in the
markedCLI in which the error message due to aENOENTwas bugging out the error output.I also updated the language in the
ENOENTerror to better reflect the fact that theENOENTmay have been due to any of the inputted files.Expectation
When running the
markedCLI with an input file that does not exist, I expect it to print out an error containing only the relevant information.Result
Marked was attempting to print out both error paths, and attempting to print an error object to
stderrWhat was attempted
The stacktrace above was remediated.
Contributor
Committer
In most cases, this should be a different person than the contributor.