payment-network-apps/network-contracts/test/utils.js

10 lines
163 B
JavaScript

exports.getErrorReason = function(err) {
const errors = [];
for (hash in err.results) {
errors.push(err.results[hash].reason);
}
return errors[0];
}