Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print error message on invalid extension install package (v2) #4122

Merged

Conversation

1000TurquoisePogs
Copy link
Member

Today, if you try to install an extension with a filename ending in something other than .tar, .pax, or .zip you'll get an error like:

TypeError: cannot read property 'rc' of undefined
at execute (/zowe/bin/commands/components/install/extract/index:83)

This is because there is no "else" case on the file extension types.
So, this PR adds an "else" that just prints the error:

Error ZWEL0318E File extension invalid. Supported file extensions: .pax, .tar, .zip

Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
Copy link

github-actions bot commented Jan 9, 2025

build 6697 SUCCEEDED.
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/12690003573

Copy link

github-actions bot commented Jan 9, 2025

Test workflow 5899 is started.
Running install test: Convenience Pax
The zowe artifact being used by this test workflow: libs-snapshot-local/org/zowe/2.18.1-PR-4122/zowe-2.18.1-pr-4122-6697-20250109124132.pax
Running on machine: zzow09
Result: SUCCESS
Link to workflow run: https://github.com/zowe/zowe-install-packaging/actions/runs/12690099204

@1000TurquoisePogs 1000TurquoisePogs merged commit 09ab26c into v2.x/staging Jan 9, 2025
12 checks passed
@1000TurquoisePogs 1000TurquoisePogs deleted the bugfix/v2/error-on-invalid-extension-package branch January 9, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants