Improve error handling during group sends

This commit is contained in:
Fedor Indutny 2022-11-22 10:43:43 -08:00 committed by GitHub
parent f0a3735ca2
commit 991580a1ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 299 additions and 324 deletions

View file

@ -299,7 +299,7 @@ export class ConversationController {
log.error(
'Contact is not valid. Not saving, but adding to collection:',
conversation.idForLogging(),
validationError.stack
Errors.toLogFormat(validationError)
);
return conversation;
@ -316,7 +316,7 @@ export class ConversationController {
identifier,
type,
'Error:',
error && error.stack ? error.stack : error
Errors.toLogFormat(error)
);
throw error;
}
@ -1247,7 +1247,7 @@ export class ConversationController {
} catch (error) {
log.error(
'ConversationController.load/map: Failed to prepare a conversation',
error && error.stack ? error.stack : error
Errors.toLogFormat(error)
);
}
})
@ -1256,7 +1256,7 @@ export class ConversationController {
} catch (error) {
log.error(
'ConversationController: initial fetch failed',
error && error.stack ? error.stack : error
Errors.toLogFormat(error)
);
throw error;
}