SysErrorString

Return system error string from errno value. Use this instead of std::strerror, which is not thread-safe. For network errors use NetworkErrorString from sock.h instead.

Synopsis

Declared in <util/syserror.h>

std::string
SysErrorString(int err);

Return Value

The human-readable string for the given error code.

Parameters

NameDescription
errerrno value to translate into a message.