Describe the bug
When a profile not configured in the zowe.config.json is used to access a mainframe resource using the FS provider in the ZE version 3.2.2, a wrong error is thrown.
ZE 3.2.2 throws:
{
code: "Unknown",
name: "TypeError (FileSystemError)",
message: "Cannot read properties of undefined (reading 'name')"
}
ZE 3.2.1 throws:
{
code: "Unknown",
name: "Error (FileSystemError)",
message: "Zowe Explorer Profiles Cache error: Could not find profile named: ibmzosmf."
}
It breaks error handling in our extension and we are unable to show correct error dialog to our users.
To Reproduce
Update ZE to version 3.2.2 in VSCode Marketplace.
Try to access mainframe resouce using ZE FS provider:
try {
const profile = "bad-profile"; // profile that is not configured in zowe.config.json
const dsn = 'MY.MF.DATASET';
await vscode.workspace.fs.stat(
vscode.Uri.parse(`zowe-ds:/${profile}/${dsn}?fetch=true`),
);
} (err) {
vscode.window.showErrorMessage(err.message);
}
Expected behavior
I expect the error message in the version 3.2.2 to be same as in the version 3.2.1.
Screenshots
Desktop (please complete the following information):
- OS: MacOS
- Zowe Explorer Version: 3.2.2
- (Optional) Zowe CLI Version:
- (Optional) Do you have secure credentials enabled?
- (Optional) Are you using a custom credential manager?
Additional context
Describe the bug
When a profile not configured in the
zowe.config.jsonis used to access a mainframe resource using the FS provider in the ZE version 3.2.2, a wrong error is thrown.ZE 3.2.2 throws:
ZE 3.2.1 throws:
It breaks error handling in our extension and we are unable to show correct error dialog to our users.
To Reproduce
Update ZE to version 3.2.2 in VSCode Marketplace.
Try to access mainframe resouce using ZE FS provider:
Expected behavior
I expect the error message in the version 3.2.2 to be same as in the version 3.2.1.
Screenshots
Desktop (please complete the following information):
Additional context