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

fix(cdk): Avoid double component error messages #1000

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Nov 2, 2022

Summary

Current Behavior:

When running a component, if the component fails, we print two error messages:

$ lacework iac fdsasd
Error: unknown command "fdsasd" for "iac"
ERROR unable to run component: exit status 1

New Behavior:

We detect that the error is a component failing to run and we avoid outputting two error messages:

$ lacework iac fdsasd
Error: unknown command "fdsasd" for "iac"

Signed-off-by: Salim Afiune Maya [email protected]

How did you test this change?

Ran manually both, component and non-component commands.

Issue

https://lacework.atlassian.net/browse/ALLY-1259

**Current Behavior:**

When running a component, if the component fails, we print two error
messages:
```
$ lacework iac fdsasd
Error: unknown command "fdsasd" for "iac"
ERROR unable to run component: exit status 1
```

**New Behavior:**

We detect that the error is a component failing to run and we avoid
outputting two error messages:
```
$ lacework iac fdsasd
Error: unknown command "fdsasd" for "iac"
```

Signed-off-by: Salim Afiune Maya <[email protected]>
@hazedav hazedav self-requested a review November 2, 2022 18:47
@hazedav hazedav merged commit 363c1d4 into main Nov 2, 2022
@hazedav hazedav deleted the afiune/ALLY-1259/cdk/remove-double-error branch November 2, 2022 20:02
@afiune afiune mentioned this pull request Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants