Skip to content

Commit

Permalink
Use ssl::error::make_error_code()
Browse files Browse the repository at this point in the history
This should prevent build errors on windows
  • Loading branch information
ClausKlein committed Dec 2, 2024
1 parent 00d0124 commit 6d549f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asio/module/tests/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ using std::error_code;

inline void fail(error_code ec, char const* what)
{
if(ec == net::ssl::error::stream_truncated)
if(ec == ssl::error::make_error_code(net::ssl::error::stream_truncated))
return;
exit(1);
}
Expand Down

0 comments on commit 6d549f2

Please sign in to comment.