native-platform
native-platform copied to clipboard
Turn OS error codes into strings
Linux has strerror(), Windows has FormatMessage (see here). We should use these to turn error codes into strings when constructing our exceptions.
We currently use strerror_r in other places: https://github.com/gradle/native-platform/blob/fd016e0f5086f24ea4dcddfa7ff3010fa6d17a66/src/shared/cpp/generic_posix.cpp#L27-L38