Skip to content

Commit

Permalink
Improve error message for invalid members
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Jun 30, 2023
1 parent afbdc66 commit b1ef08a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"getChildren.search": "Use the search button to display data sets",
"getChildren.error.invalidNode": "Invalid node",
"getChildren.responses.error": "The response from Zowe CLI was not successful",
"getChildren.invalidMember": "Cannot access member with control characters in the name: {0}",
"getChildren.noDataset": "No data sets found",
"getChildren.error.response": "Retrieving response from "
}
2 changes: 1 addition & 1 deletion packages/zowe-explorer/src/dataset/ZoweDatasetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class ZoweDatasetNode extends ZoweTreeNode implements IZoweDatasetTreeNod
temp.command = { command: "zowe.ds.ZoweNode.openPS", title: "", arguments: [temp] };
} else {
temp.errorDetails = new zowe.imperative.ImperativeError({

Check warning on line 232 in packages/zowe-explorer/src/dataset/ZoweDatasetNode.ts

View check run for this annotation

Codecov / codecov/patch

packages/zowe-explorer/src/dataset/ZoweDatasetNode.ts#L231-L232

Added lines #L231 - L232 were not covered by tests
msg: localize("getChildren.invalidMember", "Member cannot be opened because name contains special characters")
msg: localize("getChildren.invalidMember", "Cannot access member with control characters in the name: {0}", item.member)
});
}
elementChildren[temp.label.toString()] = temp;
Expand Down

0 comments on commit b1ef08a

Please sign in to comment.