Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Handle case where default browser can't be found or launched #21

Open
kitplummer opened this issue Sep 22, 2022 · 1 comment
Open

Handle case where default browser can't be found or launched #21

kitplummer opened this issue Sep 22, 2022 · 1 comment

Comments

@kitplummer
Copy link
Contributor

E.g. on a linux console with no desktop

@kitplummer
Copy link
Contributor Author

❯ cargo run login
    Finished dev [unoptimized + debuginfo] target(s) in 0.10s
     Running `target/debug/tdi login`
tdi: authenticating, a browser window will open.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })', src/auth.rs:131:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant