Skip to content

Commit 652dc71

Browse files
authored
Minor grammar correction in error message
Fix grammar in the display message when the `pgo` client receives a 405 error from the API server.
1 parent bc5ef7a commit 652dc71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgo/api/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func StatusCheck(resp *http.Response) error {
2828
if resp.StatusCode == 401 {
2929
return fmt.Errorf("Authentication Failed: %d\n", resp.StatusCode)
3030
} else if resp.StatusCode == 405 {
31-
return fmt.Errorf("Method %s for URL %s is not allowed in current the Operator "+
31+
return fmt.Errorf("Method %s for URL %s is not allowed in the current Operator "+
3232
"install: %d", resp.Request.Method, resp.Request.URL.Path, resp.StatusCode)
3333
} else if resp.StatusCode != 200 {
3434
return fmt.Errorf("Invalid Status Code: %d\n", resp.StatusCode)

0 commit comments

Comments
 (0)