1
0
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:
Enrico Fasoli 2015-11-20 16:40:21 +01:00
parent 8da785420e
commit a5ef878043

View File

@ -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)