Handle device not ready in fs::error. Solves #3592

This commit is contained in:
Ani 2017-10-28 23:48:48 +01:00 committed by kd-11
parent c1f08ce58d
commit 9b8eb089b1
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ static fs::error to_error(DWORD e)
case ERROR_INVALID_NAME: return fs::error::inval;
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;
default: fmt::throw_exception("Unknown Win32 error: %u.", e);
}
}