Function formatSystemError

#include <Geode/utils/general.hpp>std::stringformatSystemError(
intcode
)

Formats an error code (from GetLastError() or errno) to a user readable string, using FormatMessageA on Windows and strerror on other platforms.

Examples0