rust-cookbook icon indicating copy to clipboard operation
rust-cookbook copied to clipboard

Successful recipe runs should not discard `stderr`

Open ludwigpacifici opened this issue 8 years ago • 0 comments
trafficstars

Some recipes can be run and will exit gracefully. However, when some outputs are printed on stderr, they will not be display. One example found with #325. It shows on purpose a error backtrace on stderr and it is not displayed when "run" button is clicked. If the main return a non-null value, then it will be printed.

@budziq did a first issue investigation and the behavior happens in mdbook

Two solutions:

  • review the example to avoid this issue
  • see with mdBook how to print stderr regardless of the main return value.

ludwigpacifici avatar Oct 23 '17 19:10 ludwigpacifici