Ignore repetitive error message

This commit is contained in:
Alex Gleason 2024-06-17 16:29:52 -05:00
parent 96af3bb8bf
commit 8c3e16fd41
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -126,6 +126,8 @@ async function storeEvent(event: DittoEvent, signal?: AbortSignal): Promise<void
throw new RelayError('blocked', 'event deleted by user');
} else if (e.message === 'Cannot replace an event with an older event') {
return;
} else if (e.message === 'ERROR The transaction "TRANSACTION_NAME" has been aborted') {
return; // useless error message, probably from deno-postgres
} else {
debug('ERROR', e.message);
}