mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-11 21:38:38 +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) => {
|
||||
if(err){
|
||||
this.ee.emit('error',err)
|
||||
console.log('Error while getting ipfs version:',err)
|
||||
} else {
|
||||
this.ipfs_version = res.Version
|
||||
console.log('IPFS Version is',res.Version)
|
||||
|
Loading…
Reference in New Issue
Block a user