added missing `reject`

pull/5370/head
yann300 5 years ago committed by GitHub
parent 1e1b2e4d2b
commit 6aa896bb9f
  1. 1
      src/app/files/compiler-metadata.js

@ -99,6 +99,7 @@ class CompilerMetadata extends Plugin {
if (provider && path) { if (provider && path) {
self.executionContext.detectNetwork((err, { id, name } = {}) => { self.executionContext.detectNetwork((err, { id, name } = {}) => {
if (err) { if (err) {
reject(error)
console.log(err) console.log(err)
} else { } else {
var fileName = self._JSONFileName(path, contractName) var fileName = self._JSONFileName(path, contractName)

Loading…
Cancel
Save