We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::strerror
SysErrorString
1 parent d8e4ba4 commit 08f756bCopy full SHA for 08f756b
src/util/subprocess.h
@@ -36,6 +36,8 @@ Documentation for C++ subprocessing library.
36
#ifndef BITCOIN_UTIL_SUBPROCESS_H
37
#define BITCOIN_UTIL_SUBPROCESS_H
38
39
+#include <util/syserror.h>
40
+
41
#include <algorithm>
42
#include <cassert>
43
#include <csignal>
@@ -150,7 +152,7 @@ class OSError: public std::runtime_error
150
152
{
151
153
public:
154
OSError(const std::string& err_msg, int err_code):
- std::runtime_error( err_msg + ": " + std::strerror(err_code) )
155
+ std::runtime_error(err_msg + ": " + SysErrorString(err_code))
156
{}
157
};
158
0 commit comments