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

Add context to error messages #78

Merged
merged 2 commits into from
Feb 23, 2022
Merged

Add context to error messages #78

merged 2 commits into from
Feb 23, 2022

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Feb 21, 2022

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a PATCH version update

Context

Adding more context to error messages printed to build log.

Changes

Add context prefix to failf() calls

Investigation details

Decisions

@@ -370,9 +370,6 @@ func main() {
signedAPKPaths = append(signedAPKPaths, fullPath)
}

if err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was checking an err instance assigned waaay earlier, I don't think we need this here.

shams-ahmed
shams-ahmed previously approved these changes Feb 21, 2022
Copy link
Contributor

@tothszabi tothszabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good. This comment is more of an observation.

I have seen export related methods where apk and aab are exported and if an error happens here then we treat it as a warning instead of an error. It is true that these are just env var exports and use envman but I do wonder if this old logic is correct.

@ofalvai ofalvai merged commit a7fb150 into master Feb 23, 2022
@ofalvai ofalvai deleted the STEP-1842-error-context branch February 23, 2022 08:13
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.

3 participants