Commit 4d9cc63
committed
cloud: Better error message on image lookup failure
Currently, if cluster-api fails to find an image during machine creation
it fails with the following, rather unhelpful error:
"Reconciler error" err="no images were found with the given image filter: {<nil> 0xc000558880}" ...
Improve our error messages so we get something slightly more useful.
"Reconciler error" err="no images were found with the given image filter: name=foo, tags=[]" ...
Signed-off-by: Stephen Finucane <[email protected]>1 parent c197a1f commit 4d9cc63
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
350 | 354 | | |
351 | 355 | | |
352 | 356 | | |
353 | 357 | | |
354 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
355 | 363 | | |
356 | 364 | | |
357 | 365 | | |
| |||
0 commit comments