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: Replace calls to g_error #54

Merged
merged 1 commit into from Apr 30, 2020
Merged

fix: Replace calls to g_error #54

merged 1 commit into from Apr 30, 2020

Conversation

danrodrig
Copy link
Contributor

Calls to g_error result in core dump and they are not intended to report expected errors.

Replace calls to g_error with g_warning and g_printerr. The later is preferred for reporting to the command line.

Closes #53

@danrodrig danrodrig added this to the 0.2.1 milestone Apr 30, 2020
StykMartin
StykMartin previously approved these changes Apr 30, 2020
Copy link
Contributor

@StykMartin StykMartin left a comment

Choose a reason for hiding this comment

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

🐬

@danrodrig danrodrig requested review from a team, cbouchar and renanrodrigo and removed request for a team April 30, 2020 10:09
Copy link
Contributor

@cbouchar cbouchar left a comment

Choose a reason for hiding this comment

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

I had looked at these cases and debated whether removing abort should happen. I'll go along with your choice.

cbouchar
cbouchar previously approved these changes Apr 30, 2020
@danrodrig danrodrig dismissed stale reviews from cbouchar and StykMartin via 4a24faf April 30, 2020 11:18
Calls to g_error result in core dump and they are not intended to report
expected errors.

Replace calls to g_error with g_warning and g_printerr. The later is
preferred for reporting to the command line.
@danrodrig danrodrig requested a review from cbouchar April 30, 2020 12:40
@danrodrig danrodrig merged commit 2dfc4aa into restraint-harness:master Apr 30, 2020
@danrodrig danrodrig deleted the remove-gerror branch April 30, 2020 13:04
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.

Don't use g_error for logging expected errors
3 participants