zola
zola copied to clipboard
Terminating `zola serve` on Windows prints `Encountered an error`
Bug Report
When Ctr+C
-ing a zola serve
session that detected at least one change during run, most of the times prints extra error message.
// Does not prevent regular usage; been told to create this issue in #2551#issuecomment-2297227134
Environment
- Zola version: zola 0.19.2
- Windows 10 22h2
- CMD with Windows Batch, or PS
Expected Behavior
Clean exit without extra "error" prints, presumably.
Current Behavior
Most of the times there is printed either
Encountered an error: uncategorized error
Enable a logger to see more information.
or just
Encountered an error:
depending on terminal emulator used. Getting the first one with CMDer (ConEmu) the later with direct PS or CMD.
(Doing set RUST_BACKTRACE=1
before run has no effect on the outcome for me.)
Step to reproduce
zola init
n,n,n,n
zola serve
make some change, like
echo foo >> templates\index.html
in other term, and then ctrl+c
in the first one.