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

zine serve: Error recovery #126

Open
plule opened this issue Nov 28, 2022 · 0 comments
Open

zine serve: Error recovery #126

plule opened this issue Nov 28, 2022 · 0 comments

Comments

@plule
Copy link
Contributor

plule commented Nov 28, 2022

Hello, when running zine serve and an error occurs, it would be nice if Zine would continue serving the last successful build, and display the new one once the issue is fixed.

Current behavior:

  • On missing md file: Error: Failed to read markdown file of \?\D:\dev\rust\test-zine\content\issue-1\1-first.md``, then exits
  • On invalid toml: error: invalid xx then exits
  • On invalid date formatting, like pub_date = "2022--11-28": tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Failed to find the root zine.toml file',<snip>\src\serve.rs:39:14, then does not recover: This one is likely the most annoying, as an automatic process restart would not happen
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

No branches or pull requests

1 participant