0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

modules/media/media: Fix exception type.

This commit is contained in:
Jason Volk 2020-05-29 18:12:25 -07:00
parent 67ddcf074a
commit 37c89aa3d5

View file

@ -528,7 +528,7 @@ ircd::m::media::file::read(const m::room &room,
const auto handle{[&](const const_buffer &block)
{
if(unlikely(size(block) != block_size))
throw error
throw m::NOT_FOUND
{
"File [%s] block [%s] event %s idx:%lu block size %zu != %zu",
string_view{room.room_id},
@ -561,7 +561,7 @@ ircd::m::media::file::read(const m::room &room,
}};
if(unlikely(!block::get(hash, handle)))
throw error
throw m::NOT_FOUND
{
"File [%s] block %s missing in event %s idx:%lu",
string_view{room.room_id},