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:
parent
67ddcf074a
commit
37c89aa3d5
1 changed files with 2 additions and 2 deletions
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue