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

feat(versions): print error messages, not error objects #1186

Merged
merged 2 commits into from
Nov 9, 2021

Conversation

raphinesse
Copy link
Contributor

@raphinesse raphinesse commented Nov 7, 2021

Description

Only log error messages instead of the whole error objects in case of failure. This improves output especially for child process errors.

Testing

Manual testing

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2021

Codecov Report

Merging #1186 (118e31f) into master (d063f44) will decrease coverage by 0.04%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1186      +/-   ##
==========================================
- Coverage   74.86%   74.81%   -0.05%     
==========================================
  Files          13       13              
  Lines        1655     1656       +1     
==========================================
  Hits         1239     1239              
- Misses        416      417       +1     
Impacted Files Coverage Δ
bin/templates/scripts/cordova/lib/versions.js 88.37% <33.33%> (-2.11%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d063f44...118e31f. Read the comment docs.

@raphinesse raphinesse changed the title Version bin err msg feat(versions): print error messages, not error objects Nov 7, 2021
@raphinesse raphinesse marked this pull request as ready for review November 9, 2021 07:08
@raphinesse raphinesse merged commit daee863 into apache:master Nov 9, 2021
@raphinesse raphinesse deleted the version-bin-err-msg branch November 9, 2021 07:26
@erisu erisu added this to the 7.0.0 milestone Nov 16, 2021
gazben pushed a commit to apicore-engineering/cordova-ios that referenced this pull request Aug 26, 2022
* refactor(versions): reject with error, not string
* feat(versions): print error messages, not error objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants