mirror of
https://github.com/kairos-io/tpm-helpers.git
synced 2025-07-08 03:58:37 +00:00
Enhance error return from AuthRequest
Signed-off-by: mudler <mudler@c3os.io>
This commit is contained in:
parent
3f28d1857d
commit
18d63f3a8c
2
get.go
2
get.go
@ -77,7 +77,7 @@ func AuthRequest(r *http.Request, conn *websocket.Conn) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := ValidateChallenge(secret, resp); err != nil {
|
if err := ValidateChallenge(secret, resp); err != nil {
|
||||||
return fmt.Errorf("error validating challenge: %w", err)
|
return fmt.Errorf("error validating challenge: %w (response: %s)", err, string(resp))
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user