feat: add traceback logging and spec-aligned error message to GeminiEngine (refs #142)
Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
4e5da4782f
commit
f9a650a4d7
@@ -148,13 +148,15 @@ class GeminiEngine:
|
||||
return self._model
|
||||
|
||||
except ImportError as exc:
|
||||
logger.exception("Vertex AI SDK import failed")
|
||||
raise GeminiUnavailableError(
|
||||
"google-cloud-aiplatform is not installed. "
|
||||
"Install with: pip install google-cloud-aiplatform"
|
||||
) from exc
|
||||
except Exception as exc:
|
||||
logger.exception("Vertex AI authentication failed")
|
||||
raise GeminiUnavailableError(
|
||||
f"Failed to initialize Gemini engine: {exc}"
|
||||
f"Vertex AI authentication failed: {exc}"
|
||||
) from exc
|
||||
|
||||
def extract_maintenance(
|
||||
|
||||
Reference in New Issue
Block a user