Skip to content

Commit 6bb9606

Browse files
committed
fix error message
1 parent 9283684 commit 6bb9606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codec.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ when reading data from `source`. Also note that it is responsible for this
7373
method to release resources allocated by `codec` when an exception happens.
7474
"""
7575
function process(::Type{Read}, codec::Codec, source::IO, input::Ptr{UInt8}, nbytes::Int)
76-
error("codec $(codec) does not implement read mode")
76+
error("codec $(typeof(codec)) does not implement read mode")
7777
end
7878

7979
"""
@@ -90,7 +90,7 @@ appropriate return code. It can assume `input` points to a valid memory position
9090
and `nbytes` is positive.
9191
"""
9292
function process(::Type{Write}, codec::Codec, sink::IO, input::Ptr{UInt8}, nbytes::Int)
93-
error("codec $(codec) does not implement write mode")
93+
error("codec $(typeof(codec)) does not implement write mode")
9494
end
9595

9696

0 commit comments

Comments
 (0)