call `reject` after `console`

pull/5370/head
yann300 5 years ago committed by GitHub
parent 5819289107
commit 7a7786ffa6
  1. 2
      src/app/files/compiler-metadata.js

@ -99,8 +99,8 @@ 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(err)
console.log(err) console.log(err)
reject(err)
} else { } else {
var fileName = self._JSONFileName(path, contractName) var fileName = self._JSONFileName(path, contractName)
provider.get(fileName, (error, content) => { provider.get(fileName, (error, content) => {

Loading…
Cancel
Save