Commit 917b9e2
committed
Added tests for invalid 3rd-party URL
as explained in #81:
It says all packages were downloaded:
Updating index: package_index.json downloaded
Updating index: package_esp8266com_index.json downloaded
Updating index: package_lalala_index.json downloaded
But when you run commands like arduino-cli core list or arduino-cli board listall it exits with an error:
Error: loading json index file /Users/MY_USER_NAME/arduino-cli/data/package_lalala_index.json: invalid character '<' looking for beginning of value
Failed to load http://google.com/package_lalala_index.json package index.
Try updating all indexes with `arduino-cli core update-index`.
It occurs, because package_lalala_index.json contains 404 HTML page.1 parent 8c6228a commit 917b9e2
1 file changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
429 | 465 | | |
430 | 466 | | |
431 | 467 | | |
| |||
0 commit comments