Skip to content

Commit 36bbdce

Browse files
amohabirhiranya911
authored andcommitted
Fix for the uploadAccountResponse for correct error message/reason (#244)
* - Fix for the uploadAccountResponse for correct error message/reason * Update CHANGELOG.md
1 parent 1f574a3 commit 36bbdce

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- [changed] Removed org.json dependency and replaced with com.google.code.gson.
44
- [changed] Upgraded Mockito dependency, and fixed the build on Java 11.
5+
- [fixed] UploadAccountResponse now has the correct error message/reason.
56

67
# v6.7.0
78

src/main/java/com/google/firebase/auth/internal/UploadAccountResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static class ErrorInfo {
3535
@Key("index")
3636
private int index;
3737

38-
@Key("message")
38+
@Key("errorMessage")
3939
private String message;
4040

4141
public int getIndex() {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"error": [
3-
{"index": 0, "message": "Some error occurred in user1"},
4-
{"index": 2, "message": "Another error occurred in user3"}
3+
{"index": 0, "errorMessage": "Some error occurred in user1"},
4+
{"index": 2, "errorMessage": "Another error occurred in user3"}
55
]
66
}

0 commit comments

Comments
 (0)