Unverified Commit 35a4eabe authored by Ganesh Prasad Kumble's avatar Ganesh Prasad Kumble Committed by GitHub

Modified url parse error message

Replaced `url not parseable` from without space gaps to `URL not parseable: ` More readable now
parent 0772f87f
...@@ -339,9 +339,9 @@ class App { ...@@ -339,9 +339,9 @@ class App {
var splitted = /([^/]+)\/(.*)$/g.exec(url) var splitted = /([^/]+)\/(.*)$/g.exec(url)
async.tryEach([ async.tryEach([
(cb) => { self.importFileCb('localhost/installed_contracts/' + url, cb) }, (cb) => { self.importFileCb('localhost/installed_contracts/' + url, cb) },
(cb) => { if (!splitted) { cb('url not parseable' + url) } else { self.importFileCb('localhost/installed_contracts/' + splitted[1] + '/contracts/' + splitted[2], cb) } }, (cb) => { if (!splitted) { cb('URL not parseable: ' + url) } else { self.importFileCb('localhost/installed_contracts/' + splitted[1] + '/contracts/' + splitted[2], cb) } },
(cb) => { self.importFileCb('localhost/node_modules/' + url, cb) }, (cb) => { self.importFileCb('localhost/node_modules/' + url, cb) },
(cb) => { if (!splitted) { cb('url not parseable' + url) } else { self.importFileCb('localhost/node_modules/' + splitted[1] + '/contracts/' + splitted[2], cb) } }], (cb) => { if (!splitted) { cb('URL not parseable: ' + url) } else { self.importFileCb('localhost/node_modules/' + splitted[1] + '/contracts/' + splitted[2], cb) } }],
(error, result) => { filecb(error, result) } (error, result) => { filecb(error, result) }
) )
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment