Wrap anything that could break in the try/catch block
This commit is contained in:
parent
6b2ac15f56
commit
6f53c8097e
@ -34,13 +34,12 @@ module.exports = async function(callback) {
|
||||
c.ipfsHash
|
||||
])
|
||||
})
|
||||
|
||||
console.log(table.toString())
|
||||
} catch(e) {
|
||||
callback(e);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(table.toString())
|
||||
|
||||
callback()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user