ソースを参照

fix: typo in wallabag integration error message

Change "unable to get save entry" to "unable to save entry"
in the wallabag createEntry error message and its corresponding
test assertion.
dashitongzhi 1 週間 前
コミット
9fd6f44311

+ 1 - 1
internal/integration/wallabag/wallabag.go

@@ -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

+ 1 - 1
internal/integration/wallabag/wallabag_test.go

@@ -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",