diff --git a/src/storages/EventsDB.ts b/src/storages/EventsDB.ts index ba9e93a4..74fa8705 100644 --- a/src/storages/EventsDB.ts +++ b/src/storages/EventsDB.ts @@ -82,7 +82,7 @@ class EventsDB implements NStore { } else if (e.message === 'Cannot replace an event with an older event') { return; } else { - this.console.debug('ERROR', e.message); + throw e; } } } diff --git a/src/utils/api.ts b/src/utils/api.ts index ac00afb5..1ac61942 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -158,6 +158,8 @@ async function publishEvent(event: NostrEvent, c: AppContext): Promise