-
Notifications
You must be signed in to change notification settings - Fork 1
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
enhance: emit an error when the Auth method is specified but no creds were passed #35
Conversation
This avoids a frustrating timeout error when the secrets weren't passed correctly.
Auth: "LoginAuth", | ||
SMTPHost: &SMTPHost{ | ||
Host: "smtphost.com", | ||
Port: "234234", |
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.
Also LOL this works with an invalid port, that may be a problem if something else doesn't check that
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.
lgtm - thanks!
Codecov Report
@@ Coverage Diff @@
## main #35 +/- ##
==========================================
+ Coverage 20.93% 21.46% +0.52%
==========================================
Files 3 3
Lines 449 452 +3
==========================================
+ Hits 94 97 +3
Misses 353 353
Partials 2 2
|
Looks like the check failure is just a copyright date. Perhaps that can be done in another PR. |
@wass3r Who else can I or you tag to review? |
@go-vela/admins should do. I'll bug them tomorrow ;) |
This avoids a frustrating timeout error when the secrets weren't passed correctly.