Skip to content

Commit b312913

Browse files
fixes spacing in readme, updates error message
1 parent d2f46c3 commit b312913

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ import com.mailjet.client.MailjetClient;
9393
import com.mailjet.client.MailjetRequest;
9494
import com.mailjet.client.MailjetResponse;
9595
import com.mailjet.client.ClientOptions;
96-
import com.mailjet.client.resource.ApiVersion;import com.mailjet.client.resource.Emailv31;
96+
import com.mailjet.client.resource.ApiVersion;
97+
import com.mailjet.client.resource.Emailv31;
9798
import org.json.JSONArray;
9899
import org.json.JSONObject;
99100
public class MyClass {

src/main/java/com/mailjet/client/MailjetResponseUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public final class MailjetResponseUtil {
1919
private static final int UNAUTHORIZED_STATUS = 401;
2020

2121
private static final String UNEXPECTED_RESPONSE_MESSAGE = "Unexpected response from the server";
22-
private static final String UNAUTHORIZED_MESSAGE = "Unauthorized. Please,verify your access key or token for the given account";
22+
private static final String UNAUTHORIZED_MESSAGE = "Unauthorized. Please,verify your access key and access secret key or token for the given account";
2323
private static final String TOO_MANY_REQUESTS_EXCEPTION = "Too Many Requests";
2424
private static final String INTERNAL_SERVER_ERROR_GENERAL_EXCEPTION = "Internal Server Error: ";
2525

src/test/java/com/mailjet/client/MailjetClientExceptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void testUnauthorizedResponse() throws MailjetException {
136136
when(response.getBodyAsString()).thenReturn(UNAUTHORIZED_MESSAGE);
137137
// assert
138138
expectedEx.expect(MailjetUnauthorizedException.class);
139-
expectedEx.expectMessage("Unauthorized. Please,verify your access key or token for the given account");
139+
expectedEx.expectMessage("Unauthorized. Please,verify your access key and access secret key or token for the given account");
140140
// act
141141
client.post(request);
142142
}

0 commit comments

Comments
 (0)