Skip to content

Commit 1e0156a

Browse files
committed
better error message
1 parent 6aae53f commit 1e0156a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/agentex/lib/sdk/config/validation.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,12 @@ def generate_helpful_error_message(error: Exception, context: str = "") -> str:
236236
"1. Check file location: should be next to manifest.yaml\n"
237237
"2. Verify file permissions"
238238
)
239-
elif "user_id" in base_msg.lower():
239+
elif "user_id" in base_msg.lower() or "service_account_id" in base_msg.lower():
240240
base_msg += (
241241
"\n\n💡 Auth Principal Tips:\n"
242-
"- user_id should be unique per environment\n"
243-
"- Include environment name (e.g., 'dev_my_agent')\n"
242+
"- Set exactly one of 'user_id' or 'service_account_id'\n"
243+
"- The id should be unique per environment\n"
244+
"- For user_id, include environment name (e.g., 'dev_my_agent')\n"
244245
"- Use consistent naming convention across agents"
245246
)
246247
elif "namespace" in base_msg.lower():

0 commit comments

Comments
 (0)