Setup
- Rancher version: v2.13.4
- Rancher UI Extensions: n/a
- Browser type & version: ff
Describe the bug
When waitForMgmt throws errors (eg when the management cluster being searched for does not exist) the errors are not caught and the whole page breaks.
To Reproduce
This came out of testing the error handling in the virtual clusters extension. Modify the waitForMgmt function to cause the find dispatch to always fail, eg change clusterName to a garbage string. Next, try to create a generic rke2 cluster: this will trigger a call to waitForMgmt
Result
The error thrown by waitForMgmt is not caught.
Expected Result
The error should be caught. It looks like the code originally intended to silently catch errors here, but that is not working.
Screenshots
Additional context
Setup
Describe the bug
When waitForMgmt throws errors (eg when the management cluster being searched for does not exist) the errors are not caught and the whole page breaks.
To Reproduce
This came out of testing the error handling in the virtual clusters extension. Modify the waitForMgmt function to cause the find dispatch to always fail, eg change
clusterNameto a garbage string. Next, try to create a generic rke2 cluster: this will trigger a call to waitForMgmtResult
The error thrown by waitForMgmt is not caught.
Expected Result
The error should be caught. It looks like the code originally intended to silently catch errors here, but that is not working.
Screenshots
Additional context