1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

fix(integration): use more specific error message when wallabag failed to save

This commit is contained in:
Kevin Jiang 2025-08-24 17:47:01 +12:00
parent 04e5e1e993
commit 622232bed1

View file

@ -83,7 +83,7 @@ func (c *Client) createEntry(accessToken, entryURL, entryTitle, entryContent, ta
defer response.Body.Close() defer response.Body.Close()
if response.StatusCode >= 400 { if response.StatusCode >= 400 {
return fmt.Errorf("wallabag: unable to get access token: url=%s status=%d", apiEndpoint, response.StatusCode) return fmt.Errorf("wallabag: unable to get save entry: url=%s status=%d", apiEndpoint, response.StatusCode)
} }
return nil return nil