Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.8k stars 104 forks source link

Improve error message when `openssl version -v` fails #215

Closed ascandella closed 1 year ago

ascandella commented 1 year ago

On a fresh Fedora Workstation 37 install, the openssl binary is not installed. This lead to an unhelpful error message when trying to run cargo prisma:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
Os { code: 2, kind: NotFound, message: "No such file or directory" }',
   /home/aiden/.cargo/git/checkouts/prisma-client-rust-fa967aa5ad0ec391/e12e693/sdk/src/binaries/platform.rs:116:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The backtrace eventually lead me to the source to determine the issue.