mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-12 21:48:39 +01:00
added error display when ipfs.version wont work
This commit is contained in:
parent
8da785420e
commit
a5ef878043
@ -363,6 +363,7 @@ BoardsAPI.prototype.init = function(done){
|
|||||||
this.ipfs.version((err,res) => {
|
this.ipfs.version((err,res) => {
|
||||||
if(err){
|
if(err){
|
||||||
this.ee.emit('error',err)
|
this.ee.emit('error',err)
|
||||||
|
console.log('Error while getting ipfs version:',err)
|
||||||
} else {
|
} else {
|
||||||
this.ipfs_version = res.Version
|
this.ipfs_version = res.Version
|
||||||
console.log('IPFS Version is',res.Version)
|
console.log('IPFS Version is',res.Version)
|
||||||
|
Loading…
Reference in New Issue
Block a user