Skip to content

Commit f757065

Browse files
muZksamtstern
authored andcommitted
Ignore empty message string in FirebaseFunctionsException (#501)
1 parent 991fd31 commit f757065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-functions/src/main/java/com/google/firebase/functions/FirebaseFunctionsException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static Code fromHttpStatus(int status) {
199199
// The default description needs to be updated for the new code.
200200
description = code.name();
201201
}
202-
if (error.opt("message") instanceof String) {
202+
if (error.opt("message") instanceof String && !error.getString("message").isEmpty()) {
203203
description = error.getString("message");
204204
}
205205
details = error.opt("details");

0 commit comments

Comments
 (0)