mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fix EACCES error code name (#847)
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user