Skip to content

Commit b7ceee2

Browse files
authored
User-friendly error messages (#586)
1 parent 0b01d70 commit b7ceee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ where
547547
error_response(
548548
&mut write,
549549
&format!(
550-
"No pool configured for database: {:?}, user: {:?}",
550+
"There is no database \"{}\" and user \"{}\" in our system. Create a free database on https://postgresml.org to get started.",
551551
pool_name, username
552552
),
553553
)
@@ -1099,7 +1099,7 @@ where
10991099

11001100
error_response(
11011101
&mut self.write,
1102-
format!("could not get connection from the pool - {}", err).as_str(),
1102+
"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.",
11031103
)
11041104
.await?;
11051105

0 commit comments

Comments
 (0)