native-platform icon indicating copy to clipboard operation
native-platform copied to clipboard

Turn OS error codes into strings

Open lptr opened this issue 4 years ago • 1 comments

Linux has strerror(), Windows has FormatMessage (see here). We should use these to turn error codes into strings when constructing our exceptions.

lptr avatar Mar 18 '20 07:03 lptr

We currently use strerror_r in other places: https://github.com/gradle/native-platform/blob/fd016e0f5086f24ea4dcddfa7ff3010fa6d17a66/src/shared/cpp/generic_posix.cpp#L27-L38

wolfs avatar May 07 '20 14:05 wolfs