Change "unable to get save entry" to "unable to save entry" in the wallabag createEntry error message and its corresponding test assertion.
@@ -94,7 +94,7 @@ func (c *Client) createEntry(accessToken, entryURL, entryTitle, entryContent, ta
defer response.Body.Close()
if response.StatusCode >= 400 {
- return fmt.Errorf("wallabag: unable to get save entry: url=%s status=%d", apiEndpoint, response.StatusCode)
+ return fmt.Errorf("wallabag: unable to save entry: url=%s status=%d", apiEndpoint, response.StatusCode)
}
return nil
@@ -201,7 +201,7 @@ func TestCreateEntry(t *testing.T) {
w.WriteHeader(http.StatusUnauthorized)
},
- errContains: "unable to get save entry",
+ errContains: "unable to save entry",
{
name: "failure due to no accessToken",