Skip to content

Commit

Permalink
Merge pull request #444 from actuallylost/main
Browse files Browse the repository at this point in the history
Add helpful error message whenever datasource cannot be fetched
  • Loading branch information
Brendonovich committed May 9, 2024
2 parents e701c00 + 2b49850 commit b28340e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/lib/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl PrismaClientInternals {
Ok(url) => Some(url),
Err(_) => source.load_shadow_database_url()?,
}
.unwrap();
.expect("Datasource could not be fetched, please check your schema.prisma file or your environment variables");

match url.starts_with("file:") {
true => {
Expand Down

0 comments on commit b28340e

Please sign in to comment.