zowe / zowe-explorer-intellij

IntelliJ Zowe Plug-in that provides possibility to interact with z/OS features. Has Zowe Kotlin SDK as it's core to interact
Eclipse Public License 2.0
10 stars 4 forks source link

Make error notification more clear #193

Closed KUGDev closed 3 weeks ago

KUGDev commented 1 month ago

If we consider such an error from z/OSMF: Operation 'RenameOperation' has failed

eu.ibagroup.formainframe.dataops.exceptions.CallException: Unable to rename the selected member Code: 500 CATEGORY: 4.0 MESSAGE: Rename member failed RETURN CODE: 4.0 DETAILS: ISRZ002 Member already exists - Directory already contains the specified member name. REASON: 0.0

There is too much technical information written here, which is issued in the current notification: image

From the user's point of view, it would be more convenient to get more concise information, and if necessary, open a dialog with a full description of the error: image

Do something similar for all possible error types. If Details are not provided by z/OSMF, then output Unknown error in details. For title - if there is no title, then output the first message from the stack without specifying the class (eu.ibagroup.formainframe.dataops.exceptions.CallException: Unable to rename the selected member = Unable to rename the selected member), otherwise - Unknown error during the operation run

KUGDev commented 3 weeks ago

https://github.com/zowe/zowe-explorer-intellij/commit/83375d25