MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / _format_validation_error

Function _format_validation_error

beanhub_cli/connect/main.py:97–103  ·  view source on GitHub ↗
(resp: HTTPValidationError)

Source from the content-addressed store, hash-verified

95
96
97def _format_validation_error(resp: HTTPValidationError) -> str:
98 error = resp.additional_properties.get("error")
99 if error is not None:
100 return str(error)
101 if resp.detail:
102 return str(resp.detail)
103 return "Unknown validation error"
104
105
106def _classify_syncs(resp: GetSyncBatchResponse) -> tuple[list, list]:

Callers 1

run_syncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected