mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Fix DonationsService ServiceResponse to use exception body instead of message.
This commit is contained in:
committed by
Michelle Tang
parent
d4a1cb0bfb
commit
71b92f03bc
@@ -387,7 +387,7 @@ public class DonationsService {
|
||||
return ServiceResponse.forResult(responseAndCode.first(), responseAndCode.second(), null);
|
||||
} catch (NonSuccessfulResponseCodeException e) {
|
||||
Log.w(TAG, "Bad response code from server.", e);
|
||||
return ServiceResponse.forApplicationError(e, e.code, e.getMessage());
|
||||
return ServiceResponse.forApplicationError(e, e.code, e.getStringBody());
|
||||
} catch (IOException e) {
|
||||
Log.w(TAG, "An unknown error occurred.", e);
|
||||
return ServiceResponse.forUnknownError(e);
|
||||
|
||||
Reference in New Issue
Block a user