Merge pull request #1448 from ethereum/fix_ImportFailureDueToRemixd

Return error if localhost not connected
pull/1/head
yann300 6 years ago committed by GitHub
commit ed18c3d594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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) {

Loading…
Cancel
Save