Commit 286a278
fix(cli): improve error message when adk web is run in wrong directory
Enhances the AgentLoader error message to help users who run 'adk web'
from incorrect directories. This issue affected multiple teams during
internal workshops when getting started with ADK.
Changes:
- Adds visual directory structure diagram to error message
- Includes explicit 'adk web <agents_dir>' usage example
- Detects when user is inside an agent directory and provides
targeted hint to run 'adk web .' from parent directory
Fixes #3195
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 2424d6a commit 286a278
1 file changed
+22
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
227 | 239 | | |
228 | 240 | | |
229 | 241 | | |
230 | 242 | | |
231 | | - | |
232 | | - | |
233 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
234 | 253 | | |
235 | 254 | | |
236 | 255 | | |
| |||
0 commit comments