mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-19 06:44:58 +09:00
errors: rewrite errors to follow go best practices
Errors should not start capitalised and they should not contain the word error or state that they "failed" as we already know it is an error Signed-off-by: Kristoffer Dalby <kristoffer@dalby.cc>
This commit is contained in:
@@ -5,6 +5,6 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
ErrCannotDecryptResponse = errors.New("cannot decrypt response")
|
||||
ErrCannotDecryptResponse = errors.New("decrypting response")
|
||||
ZstdCompression = "zstd"
|
||||
)
|
||||
|
||||
@@ -48,7 +48,7 @@ func ParseLoginURLFromCLILogin(output string) (*url.URL, error) {
|
||||
|
||||
loginURL, err := url.Parse(urlStr)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to parse URL: %w", err)
|
||||
return nil, fmt.Errorf("parsing URL: %w", err)
|
||||
}
|
||||
|
||||
return loginURL, nil
|
||||
|
||||
Reference in New Issue
Block a user