mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 18:31:24 +02:00
Add more info to logged message
This commit is contained in:
parent
047d13afd1
commit
fbcea12786
@ -644,7 +644,10 @@ func fetchPiholeSessionID(instanceURL string, client *http.Client, password stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
if jsonResponse.Session.SID == "" {
|
if jsonResponse.Session.SID == "" {
|
||||||
return "", errors.New("authentication response returned empty session ID")
|
return "", fmt.Errorf(
|
||||||
|
"authentication response returned empty session ID, status code %d, message '%s'",
|
||||||
|
response.StatusCode, jsonResponse.Session.Message,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return jsonResponse.Session.SID, nil
|
return jsonResponse.Session.SID, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user