mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02:00
Solved some todo(s)
This commit is contained in:
parent
05acfb045f
commit
a3cf4f17f8
5 changed files with 27 additions and 30 deletions
|
@ -14,7 +14,7 @@ func BuildAuth(header string) (reqcontext.Authorization, error) {
|
|||
auth, err := BuildBearer(header)
|
||||
if err != nil {
|
||||
if err.Error() == "invalid authorization header" {
|
||||
return nil, errors.New("method not supported") // todo: better error description
|
||||
return nil, errors.New("authentication method not supported")
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue