Fix DonationsService ServiceResponse to use exception body instead of message.

This commit is contained in:
Jeffrey Starke
2025-09-26 09:46:11 -04:00
committed by Michelle Tang
parent d4a1cb0bfb
commit 71b92f03bc

View File

@@ -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);