file stat: handle error case proper

fixes #44543
This commit is contained in:
isidor 2018-02-27 15:40:54 +01:00
parent dd2fc7ede3
commit 6dc27ecac8

View file

@ -1234,6 +1234,10 @@ export class StatResolver {
function stat(this: any): void {
extfs.statLink(fileResource.fsPath, (error: Error, statAndIsLink) => {
if (error) {
return this(error, null);
}
isSymbolicLink = statAndIsLink.isSymbolicLink;
this(null, statAndIsLink.stat);
});