Handle Win32 error 87 ERROR_INVALID_PARAMETER with fs::error::inval

This commit is contained in:
Unknown 2017-11-12 12:27:27 +01:00 committed by kd-11
parent 86a34fbb45
commit 380f90b097

View File

@ -97,6 +97,7 @@ static fs::error to_error(DWORD e)
case ERROR_SHARING_VIOLATION: return fs::error::acces;
case ERROR_DIR_NOT_EMPTY: return fs::error::notempty;
case ERROR_NOT_READY: return fs::error::noent;
case ERROR_INVALID_PARAMETER: return fs::error::inval;
default: fmt::throw_exception("Unknown Win32 error: %u.", e);
}
}