zowe / zowe-install-packaging

Packaging repository for the Zowe install scripts and files
Eclipse Public License 2.0
27 stars 52 forks source link

ZWEL0106E does not state where error came from #3221

Open 1000TurquoisePogs opened 1 year ago

1000TurquoisePogs commented 1 year ago

A user is observing the following

When I run zwe init, I received the following error: Error ZWEL0106E: ca-alias parameter is required I then tried "zwe init --ca-alias" but it resulted in: Error ZWEL0102E: Invalid parameter --ca-alias

This parameter doesnt actually come from zwe init so it misleads the user into doing something invalid. The parameter actually comes from zwe certificate pkcs12 .... such as here https://github.com/zowe/zowe-install-packaging/blob/v2.x/master/bin/commands/certificate/pkcs12/create/cert/.parameters and zwe init certificates calls zwe certificate, so the fact this error message comes from zwe certificate is invisible to the user, causing the misinformation.

This could be fixed by just making ZWEL0106E print out which command was being run at the time. there's some ZWE internal environment variable that includes the command name.

Martin-Zeithaml commented 2 months ago

Partially solved by adding tracing, but only when --trace flag is used.