mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-26 10:26:30 +00:00
User-friendly error messages (#586)
This commit is contained in:
@@ -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?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user