Skip to content

CLI wallet crash after pipe is closed #1172

Open
@pavel-kokolemin

Description

@pavel-kokolemin

The CLI should probably just exit with an error.

$ echo -e 'connectedpeers' | ./target/debug/wallet-cli | true                                                                                                                                      
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:1019:9
  18:     0x55ae22c168ba - <wallet_cli_lib::console::StdioOutputConsole as wallet_cli_lib::console::ConsoleOutput>::print_error::h7e59760575a96c64
                               at mintlayer-core/wallet/wallet-cli-lib/src/console.rs:63:13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions