Return error to client on failed to parse push notification.
GitOrigin-RevId: 84ad387ba6defa0cb1c7b468aba134954b867e39
This commit is contained in:
parent
6bacc64f3c
commit
586a812016
@ -2530,6 +2530,7 @@ void NotificationManager::process_push_notification(string payload, Promise<Unit
|
||||
auto status = process_push_notification_payload(payload);
|
||||
if (status.is_error()) {
|
||||
LOG(ERROR) << "Receive error " << status << ", while parsing push payload " << payload;
|
||||
return promise.set_error(Status::Error(400, status.message()));
|
||||
}
|
||||
promise.set_value(Unit());
|
||||
return;
|
||||
|
Reference in New Issue
Block a user