ethers.js/utils/throw-error.js
2017-04-04 17:06:49 -04:00

12 lines
209 B
JavaScript

'use strict';
function throwError(message, params) {
var error = new Error(message);
for (var key in params) {
error[key] = params[key];
}
throw error;
}
module.exports = throwError;