mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 01:06:50 +00:00
Marshal HttpResponseException in GooglePlayBillingManager
This commit is contained in:
1 parent
d6c15ef1d5
commit
9751569dc7
2 files changed
+5
-3
No files matched your search
+4
-2
@@ -359,8 +359,10 @@ public class GooglePlayBillingManager implements SubscriptionPaymentProcessor {
|
||||
? ((GoogleJsonResponseException) e).getDetails().toString()
|
||||
: "";
|
||||
|
||||
logger.warn("Unexpected HTTP status code {} from androidpublisher: {}", e.getStatusCode(), details);
|
||||
throw new UncheckedIOException(e);
|
||||
final String message =
|
||||
String.format("Unexpected HTTP status code %s from androidpublisher: %s", e.getStatusCode(), details);
|
||||
logger.warn(message);
|
||||
throw new UncheckedIOException(new IOException(message));
|
||||
} catch (IOException e) {
|
||||
throw new UncheckedIOException(e);
|
||||
}
|
||||
|
||||
+1
-1
@@ -273,7 +273,7 @@ class GooglePlayBillingManagerTest {
|
||||
return Stream.of(
|
||||
Arguments.of(404, SubscriptionNotFoundException.class),
|
||||
Arguments.of(410, SubscriptionNotFoundException.class),
|
||||
Arguments.of(400, HttpResponseException.class)
|
||||
Arguments.of(400, IOException.class)
|
||||
);
|
||||
}
|
||||
@ParameterizedTest
|
||||
|
||||
Reference in new issue
Block a user