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

didc panics if I redirect output to a file with <(...) syntax #227

Open
osa1 opened this issue May 10, 2021 · 0 comments
Open

didc panics if I redirect output to a file with <(...) syntax #227

osa1 opened this issue May 10, 2021 · 0 comments

Comments

@osa1
Copy link
Contributor

osa1 commented May 10, 2021

$ echo <(/home/omer/dfinity/candid/target/debug/didc encode ...)
/proc/self/fd/11
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }', tools/didc/src/main.rs:245:52
stack backtrace:
$    0: rust_begin_unwind
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5
   1: std::panicking::begin_panic_fmt
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:435:5
   2: std::io::stdio::print_to
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/io/stdio.rs:940:9
   3: std::io::stdio::_print
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/io/stdio.rs:952:5
   4: didc::main
             at /home/omer/dfinity/candid/tools/didc/src/main.rs:244:13
   5: core::ops::function::FnOnce::call_once
             at /home/omer/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Trying with current master branch (a555d77)

ninegua pushed a commit to ninegua/candid that referenced this issue Apr 22, 2022
Also adds /authorize that redirects to /welcome. This new route should be stable over multiple releases.

Fixes dfinity#227.
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