|
|
@@ -55,7 +55,7 @@ namespace cppcurl |
|
|
|
{ |
|
|
|
os << error_str |
|
|
|
<< '(' |
|
|
|
<< static_cast<int>(error) |
|
|
|
<< cppcurl_convert_cast<int>(error) |
|
|
|
<< "): " |
|
|
|
<< message; |
|
|
|
} |
|
|
@@ -63,7 +63,7 @@ namespace cppcurl |
|
|
|
template<typename T_error> |
|
|
|
exception<T_error> |
|
|
|
::exception(T_error err, const std::string& msg) |
|
|
|
: _what (__impl::get_error_str<T_error>()(err) + "(" + std::to_string(static_cast<int>(err)) + "): " + msg) |
|
|
|
: _what (__impl::get_error_str<T_error>()(err) + "(" + std::to_string(cppcurl_convert_cast<int>(err)) + "): " + msg) |
|
|
|
, error (err) |
|
|
|
, error_str (__impl::get_error_str<T_error>()(err)) |
|
|
|
{ } |
|
|
|