| 20 | #include "std-compat.h" |
| 21 | |
| 22 | static inline void throw_system_error(int err_num, const char* msg) { |
| 23 | LOG_ERROR(msg, ": ", ERRNO(err_num)); |
| 24 | throw std::system_error(std::error_code(err_num, std::generic_category()), msg); |
| 25 | } |
| 26 | |
| 27 | template<typename FMT, typename...Ts> |
| 28 | static inline void log_error(FMT fmt, Ts&& ...xs) { |
no test coverage detected