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

Don't panic when e.g. piping to head #12

Closed
gabebw opened this issue Sep 2, 2019 · 1 comment · Fixed by #13
Closed

Don't panic when e.g. piping to head #12

gabebw opened this issue Sep 2, 2019 · 1 comment · Fixed by #13

Comments

@gabebw
Copy link
Owner

gabebw commented Sep 2, 2019

Here's an example:

 $ curl --silent daringfireball.net | candle 'html {html}' | head
<html class="daringfireball-net" lang="en">
  <head>
    <meta charset="UTF-8"></meta>
    <title>
      Daring Fireball
    </title>
    <meta name="viewport" content="width=500, minimum-scale=0.45"></meta>
    <link href="/graphics/apple-touch-icon.png" rel="apple-touch-icon-precomposed"></link>
    <link href="/graphics/favicon.ico?v=005" rel="shortcut icon"></link>
    <link rel="mask-icon" href="/graphics/dfstar.svg" color="#4a525a"></link>
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', src/libstd/io/stdio.rs:792:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

The issue is the message shown at the end:

thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', src/libstd/io/stdio.rs:792:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
@gabebw
Copy link
Owner Author

gabebw commented Sep 2, 2019

Related issue: rust-lang/rust#46016

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 a pull request may close this issue.

1 participant