From 9e501d39ff09474055108be3a6b7282abeae071d Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 7 Aug 2018 14:03:24 +0200 Subject: [PATCH] return error if localhost not connected --- src/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app.js b/src/app.js index 151af22976..c2676f7b4f 100644 --- a/src/app.js +++ b/src/app.js @@ -321,6 +321,9 @@ class App { } var provider = self._components.fileManager.fileProviderOf(url) if (provider) { + if (provider.type === 'localhost' && !provider.isConnected()) { + return filecb(`file provider ${provider.type} not available while trying to resolve ${url}`) + } provider.exists(url, (error, exist) => { if (error) return filecb(error) if (exist) {