Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Plugin Validation Failure returns 0 #463

Closed
awharn opened this issue Nov 16, 2020 · 1 comment · Fixed by #635
Closed

Plugin Validation Failure returns 0 #463

awharn opened this issue Nov 16, 2020 · 1 comment · Fixed by #635
Labels
bug Something isn't working

Comments

@awharn
Copy link
Member

awharn commented Nov 16, 2020

Plugin validation returns 0 regardless of whether or not validation succeeded. This is a problem for scripts, as they cannot check whether or not an installation of a plugin succeeded. This also may mask a problem if a user is attempting to install plugins in bulk, causing the error message to be buried and making it more difficult for a user to identify that a plugin is missing.

_____ Validation results for plugin '********' _____

*** CmdError: The handler for command = 'command1 (at depth = 2)' does not exist: /root/.zowe/plugins/installed/lib/node_modules/***********

*** CmdError: The handler for command = 'command2 (at depth = 2)' does not exist: /root/.zowe/plugins/installed/lib/node_modules/***********

This plugin has command errors. No plugin commands will be available.


root@test-vm:~# echo $?
0
@awharn awharn added the bug Something isn't working label Nov 16, 2020
@liuxh0
Copy link
Contributor

liuxh0 commented Dec 17, 2020

I found out that calling params.response.console.error() does not result in an exit code greater than zero. Here are some ideas:

@awharn awharn linked a pull request Jul 23, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants