提交 0ef0a43d 编写于 作者: J Joao Moreno

catch no cache case

上级 871e985d
......@@ -129,6 +129,11 @@ export class GalleryService implements IGalleryService {
private queryCache(): TPromise<IXHRResponse> {
const url = this.extensionsCacheUrl;
if (!url) {
return TPromise.wrapError(new Error('No cache configured.'));
}
return this.requestService.makeRequest({ url });
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册