Skip to content

Commit

Permalink
Use Base.IOError in closewrite
Browse files Browse the repository at this point in the history
Instead of MbedException, in line with #257

Fixes #259
  • Loading branch information
gustafsson authored and quinnj committed Oct 21, 2022
1 parent ecf7e5b commit 048c2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function closewrite(ctx::SSLContext)
"never returns ...WANT_READ/WRITE."
elseif n != 0
ssl_abandon(ctx)
throw(MbedException(n))
throw(Base.IOError(strerror(n), n))
elseif !ctx.isreadable
# already seen EOF, so we can go ahead and destroy this now immediately
close(ctx.bio)
Expand Down

0 comments on commit 048c2df

Please sign in to comment.