-
Notifications
You must be signed in to change notification settings - Fork 7
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: return correct exit code when one env failed #17
Conversation
@@ -44,15 +44,12 @@ impl EnvController for MyController { | |||
|
|||
#[tokio::main] | |||
async fn main() { | |||
let args: Vec<String> = env::args().collect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unnecessary part, the basic example should be as simple as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
f500c2f
to
9f590c7
Compare
@@ -44,15 +44,12 @@ impl EnvController for MyController { | |||
|
|||
#[tokio::main] | |||
async fn main() { | |||
let args: Vec<String> = env::args().collect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
9f590c7
to
c70599a
Compare
Which issue does this PR close?
Closes #16
Rationale for this change
When one env run failed, its error will be ignored, which is not what we expect.
What changes are included in this PR?
Are there any user-facing changes?
No
How does this change test
New bad example