Skip to content

Commit 2b8c515

Browse files
committed
fix: simplify error message for database connection issues
1 parent b85bf2c commit 2b8c515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webserver/database/execute_queries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ async fn take_connection<'a>(
251251
Err(e) => {
252252
let db_name = db.connection.any_kind();
253253
let active_count = db.connection.size();
254-
let err_msg = format!("Unable to acquire a {db_name:?} database connection to execute the SQL file. The connection pool currently has {active_count} active connections.");
254+
let err_msg = format!("Unable to connect to {db_name:?}. The connection pool currently has {active_count} active connections.");
255255
Err(anyhow::Error::new(e).context(err_msg))
256256
}
257257
}

0 commit comments

Comments
 (0)