Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uncaught error issue with markbind serve #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

AgentHagu
Copy link
Owner

@AgentHagu AgentHagu commented Dec 19, 2024

This PR is meant to address the issue MarkBind#2570 in the main upstream repo. In summary, it "catches" the uncaught exception that occurs when a user does markbind serve in a non-MarkBind configured directory.

The fix employed currently is to add a process.exit() after logging the error No config file found in parent directories of XXX. The original issue came about because even though this error was caught, the process wouldn't end and the unitialized variable rootFolder would continue on to the next line, which would trigger the uncaught exception of "The "path" argument must be of type string."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant