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

more go-like error handling #183

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

JssDWt
Copy link
Contributor

@JssDWt JssDWt commented Jan 10, 2025

No description provided.

@JssDWt JssDWt force-pushed the jssdwt-go-snippets-error-handling branch 2 times, most recently from 98542fc to d74f966 Compare January 10, 2025 11:40
@JssDWt JssDWt marked this pull request as ready for review January 10, 2025 12:25
@JssDWt JssDWt requested a review from dangeross January 10, 2025 12:25
Copy link
Contributor

@dangeross dangeross left a comment

Choose a reason for hiding this comment

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

Just one small correction needed

Comment on lines 42 to 45
if err != nil {
return err
}
log.Printf("%#v", err)
Copy link
Contributor

@dangeross dangeross Jan 10, 2025

Choose a reason for hiding this comment

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

Suggested change
if err != nil {
return err
}
log.Printf("%#v", err)
if err != nil {
log.Printf("%#v", err)
return err
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I will just remove the logline here.

@JssDWt JssDWt force-pushed the jssdwt-go-snippets-error-handling branch from d74f966 to 42f734b Compare January 10, 2025 13:02
@JssDWt JssDWt merged commit 42f734b into main Jan 10, 2025
70 checks passed
@JssDWt JssDWt deleted the jssdwt-go-snippets-error-handling branch January 10, 2025 14:14
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