mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-23 10:05:08 +02:00
fix(cli): show the control plane's reason without the HTTP envelope
This commit is contained in:
@@ -1452,7 +1452,9 @@ def _resolve_or_create(
|
||||
|
||||
|
||||
def _needs_a_listener(err: HostBackendError) -> bool:
|
||||
return err.status_code == 400 and _LISTENER_REQUIRED_MARKER in err.message
|
||||
return err.status_code == 400 and _LISTENER_REQUIRED_MARKER in (
|
||||
err.detail or err.message
|
||||
)
|
||||
|
||||
|
||||
def _available_listeners(client: HostBackendClient) -> tuple[Listener, ...]:
|
||||
@@ -1589,7 +1591,7 @@ class CustomerRegistrySource:
|
||||
if _needs_a_listener(err):
|
||||
raise click.UsageError(
|
||||
"This workspace deploys through a listener. Re-run with "
|
||||
f"--listener-id and --k8s-namespace.\n{err.message}"
|
||||
f"--listener-id and --k8s-namespace.\n{err.detail or err.message}"
|
||||
) from None
|
||||
raise
|
||||
return DeployOutcome(
|
||||
|
||||
Reference in New Issue
Block a user