From b7ceee2ddf437b477f0ccfff80e5a3da304c0a65 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Mon, 11 Sep 2023 16:39:11 -0700 Subject: [PATCH] User-friendly error messages (#586) --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 4b28112..dc0e292 100644 --- a/src/client.rs +++ b/src/client.rs @@ -547,7 +547,7 @@ where error_response( &mut write, &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 ), ) @@ -1099,7 +1099,7 @@ where error_response( &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?;