FuelLabs/forc-wallet

`forc-wallet account` command panics

tritao opened this issue · 2 comments

As the example below shows, when issuing a forc-wallet account command, a panic is given.

Ideally this would be changed to something a little bit more friendly.

~/dev/forc-wallet$ cargo run --bin forc-wallet -- account
    Blocking waiting for file lock on build directory
    Finished dev [unoptimized + debuginfo] target(s) in 8.67s
     Running `target/debug/forc-wallet account`
thread 'main' panicked at 'failed to invoke `forc wallet account --help` command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/account.rs:310:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I can't seem to repro this - what version of the wallet is this on?

I'm on: commit cdf3a933a6af1eaeead2966da7151c4590cf961a (HEAD -> master, tag: v0.2.2, origin/master, origin/HEAD)

Here is a full trace in case it helps:

thread 'main' panicked at 'failed to invoke `forc wallet account --help` command: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/account.rs:310:10
stack backtrace:
   0: rust_begin_unwind
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/panicking.rs:64:14
   2: core::result::unwrap_failed
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1791:5
   3: core::result::Result<T,E>::expect
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1070:23
   4: forc_wallet::account::print_subcmd_help
             at ./src/account.rs:305:5
   5: forc_wallet::account::cli::{{closure}}
             at ./src/account.rs:115:25
   6: forc_wallet::main::{{closure}}
             at ./src/main.rs:135:73
   7: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/park.rs:283:63
   8: tokio::runtime::coop::with_budget
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/coop.rs:102:5
   9: tokio::runtime::coop::budget
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/coop.rs:68:5
  10: tokio::runtime::park::CachedParkThread::block_on
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/park.rs:283:31
  11: tokio::runtime::context::BlockingRegionGuard::block_on
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/context.rs:315:13
  12: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/scheduler/multi_thread/mod.rs:66:9
  13: tokio::runtime::runtime::Runtime::block_on
             at ~/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.25.0/src/runtime/runtime.rs:284:45
  14: forc_wallet::main
             at ./src/main.rs:139:5
  15: core::ops::function::FnOnce::call_once
             at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:507:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.