Fix EACCES error code name (#847)

This commit is contained in:
David Sanders
2023-07-06 05:43:00 -07:00
committed by GitHub
parent 672ac9c79b
commit ead2640188
3 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ namespace _ {
return vscode.FileSystemError.FileExists();
}
if (error.code === 'EPERM' || error.code === 'EACCESS') {
if (error.code === 'EPERM' || error.code === 'EACCES') {
return vscode.FileSystemError.NoPermissions();
}

View File

@ -26,7 +26,7 @@ function massageError(error: Error & { code?: string }): Error {
return vscode.FileSystemError.FileExists();
}
if (error.code === 'EPERM' || error.code === 'EACCESS') {
if (error.code === 'EPERM' || error.code === 'EACCES') {
return vscode.FileSystemError.NoPermissions();
}

View File

@ -29,7 +29,7 @@ namespace _ {
return vscode.FileSystemError.FileExists();
}
if (error.code === 'EPERM' || error.code === 'EACCESS') {
if (error.code === 'EPERM' || error.code === 'EACCES') {
return vscode.FileSystemError.NoPermissions();
}