You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by we...@apache.org on 2026/04/29 10:11:57 UTC
(airflow) branch main updated: Make error messages consistent in local API client create_pool (#66039)
This is an automated email from the ASF dual-hosted git repository.
Lee-W pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new f883ef33643 Make error messages consistent in local API client create_pool (#66039)
f883ef33643 is described below
commit f883ef33643d6bcc45fb0e31de6e697c1bdc86c9
Author: Colten <70...@users.noreply.github.com>
AuthorDate: Wed Apr 29 18:11:48 2026 +0800
Make error messages consistent in local API client create_pool (#66039)
---
airflow-core/src/airflow/api/client/local_client.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/airflow-core/src/airflow/api/client/local_client.py b/airflow-core/src/airflow/api/client/local_client.py
index 25e42008d21..2eeb5d434b5 100644
--- a/airflow-core/src/airflow/api/client/local_client.py
+++ b/airflow-core/src/airflow/api/client/local_client.py
@@ -88,11 +88,11 @@ class Client:
raise AirflowBadRequest("Pool name shouldn't be empty")
pool_name_length = Pool.pool.property.columns[0].type.length
if len(name) > pool_name_length:
- raise AirflowBadRequest(f"pool name cannot be more than {pool_name_length} characters")
+ raise AirflowBadRequest(f"Pool name cannot be more than {pool_name_length} characters")
try:
slots = int(slots)
except ValueError:
- raise AirflowBadRequest(f"Bad value for `slots`: {slots}")
+ raise AirflowBadRequest(f"Invalid value for `slots`: {slots}")
pool = Pool.create_or_update_pool(
name=name, slots=slots, description=description, include_deferred=include_deferred
)