Skip to content

Commit 23d3e56

Browse files
committed
fix testV2Exception
1 parent 841de4b commit 23d3e56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/com/squareup/square/SanityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void testV2Exception() throws IOException {
111111
List<Error> errors = e.getErrors();
112112
assertEquals(errors.get(0).getCategory(), "AUTHENTICATION_ERROR");
113113
assertEquals(errors.get(0).getCode(), "UNAUTHORIZED");
114-
assertEquals(errors.get(0).getDetail(), "This request could not be authorized.");
114+
assertEquals(errors.get(0).getDetail(), "The `Authorization` http header of your request was malformed. The header value is expected to be of the format \"Bearer TOKEN\" (without quotation marks), where TOKEN is to be replaced with your access token (e.g. \"Bearer ABC123def456GHI789jkl0\"). For more information, see https://docs.connect.squareup.com/api/connect/v2/#requestandresponseheaders. If you are seeing this error message while using one of our officially supported SDKs, please report this to developers@squareup.com.");
115115
}
116116
}
117117

0 commit comments

Comments
 (0)