mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-19 05:14:27 +01:00
publishEvent: throw errors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user