Closed t1m0thyj closed 7 months ago
Here's what the error looks like in Zowe Explorer:
I expected the error to occur, but with 3 errors in the message it might not be obvious to end-users as to why the credential manager failed to load.
Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.
Currently if the K8s
readNamespace
API fails, and the error code is not 401 or 403, we assume that "namespace does not exist" in the error message: https://github.com/zowe/zowe-cli-secrets-for-kubernetes/blob/bd43346bddb54c2bb8550c9c31f187e582a4afc7/packages/cli/src/credentials/K8sCredentialManager.ts#L65-L67This message can be misleading as the error might have been caused by a different reason. I suggest that we preserve the original error message to aid in debugging - something like the following: