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

Fix fileIndex error handling

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