提交 a0f1543c 编写于 作者: R Rob Lourens

Fix fileIndex error handling

上级 1433e180
...@@ -222,12 +222,8 @@ export class FileIndexSearchEngine { ...@@ -222,12 +222,8 @@ export class FileIndexSearchEngine {
isLimitHit: this.isLimitHit, isLimitHit: this.isLimitHit,
stats stats
}); });
}, (errs: Error[]) => { }, (err: Error) => {
const errMsg = errs reject(new Error(toErrorMessage(err)));
.map(err => toErrorMessage(err))
.filter(msg => !!msg)[0];
reject(new Error(errMsg));
}); });
}); });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册