User-friendly error messages (#586)

This commit is contained in:
Lev Kokotov
2023-09-11 16:39:11 -07:00
committed by GitHub
parent 0b01d70b55
commit b7ceee2ddf

View File

@@ -547,7 +547,7 @@ where
error_response( error_response(
&mut write, &mut write,
&format!( &format!(
"No pool configured for database: {:?}, user: {:?}", "There is no database \"{}\" and user \"{}\" in our system. Create a free database on https://postgresml.org to get started.",
pool_name, username pool_name, username
), ),
) )
@@ -1099,7 +1099,7 @@ where
error_response( error_response(
&mut self.write, &mut self.write,
format!("could not get connection from the pool - {}", err).as_str(), "Your database ran out of GPU concurrency capacity. Please upgrade by logging into your account on https://postgresml.org and increasing your GPU concurrency limit.",
) )
.await?; .await?;