From 33da812a7161dd4e6a8512777151f994666a4798 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Mon, 11 Sep 2023 16:38:45 -0700 Subject: [PATCH] User-friendly error messages --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 4b281121..dc0e2927 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?;