Commit d73a5c6
committed
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 #31951 parent 2424d6a commit d73a5c6
1 file changed
Lines changed: 22 additions & 3 deletions
| 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