Skip to content

Commit fc56691

Browse files
committed
Print whole errors instead of localized descriptions
1 parent 5694c29 commit fc56691

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

functions/FunctionsExample/CloudAddCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ - (IBAction)didTapAdd:(id)sender {
5353
NSObject *details = error.userInfo[FIRFunctionsErrorDetailsKey];
5454
}
5555
// [START_EXCLUDE]
56-
NSLog(@"%@", error.localizedDescription);
56+
NSLog(@"%@", error);
5757
return;
5858
// [END_EXCLUDE]
5959
}

functions/FunctionsExample/CommentCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ - (IBAction)didTapAddMessage:(id)sender {
5050
NSObject *details = error.userInfo[FIRFunctionsErrorDetailsKey];
5151
}
5252
// [START_EXCLUDE]
53-
NSLog(@"%@", error.localizedDescription);
53+
NSLog(@"%@", error);
5454
return;
5555
// [END_EXCLUDE]
5656
}

functions/FunctionsExampleSwift/CloudAddCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CloudAddCell: MDCCollectionViewCell {
4242
let details = error.userInfo[FunctionsErrorDetailsKey]
4343
}
4444
// [START_EXCLUDE]
45-
print(error.localizedDescription)
45+
print(error)
4646
return
4747
// [END_EXCLUDE]
4848
}

functions/FunctionsExampleSwift/CommentCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CommentCell: MDCCollectionViewCell {
3737
let details = error.userInfo[FunctionsErrorDetailsKey]
3838
}
3939
// [START_EXCLUDE]
40-
print(error.localizedDescription)
40+
print(error)
4141
return
4242
// [END_EXCLUDE]
4343
}

0 commit comments

Comments
 (0)