publishEvent: throw errors

This commit is contained in:
Alex Gleason 2024-08-09 12:44:25 -05:00
parent c7a59b50d0
commit 9b68d2d08a
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -158,6 +158,8 @@ async function publishEvent(event: NostrEvent, c: AppContext): Promise<NostrEven
throw new HTTPException(422, {
res: c.json({ error: e.message }, 422),
});
} else {
throw e;
}
}