Skip to content

Commit 8088e1b

Browse files
author
Chris Wilson
committed
Fixes some bad strings and comments from code review.
1 parent c894ab9 commit 8088e1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/sparkpost-samples-app/src/main/java/com/sparkpost/error/samples/BadApiKeyErrorSample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ private void runApp() throws SparkPostException, IOException {
3636
try {
3737
ResourceSendingDomains.list(connection);
3838

39-
throw new IllegalStateException("Error: Expected SparkPostAuthorizationFailedException");
39+
throw new IllegalStateException("Error: Expected SparkPostAccessForbiddenException");
4040
} catch (SparkPostAccessForbiddenException e) {
41-
System.out.println("GOOD: Sucecssfuly got a SparkPostAuthorizationFailedException");
41+
System.out.println("GOOD: Sucecssfuly got a SparkPostAccessForbiddenException");
4242
}
4343

4444
}

libs/sparkpost-lib/src/main/java/com/sparkpost/transport/RestConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private HttpURLConnection createConnectionObject(String path, Method method) thr
144144
break;
145145
case PUT:
146146
conn.setRequestMethod("PUT");
147-
// we write the POST data to the "output" stream:
147+
// we write the PUT data to the "output" stream:
148148
conn.setDoOutput(true);
149149
if (logger.isDebugEnabled()) {
150150
logger.debug("PUT " + path);

0 commit comments

Comments
 (0)