]> git.r.bdr.sh - rbdr/dotfiles/blob
0bef768a776d09e0653279dd2037adffdaa6d70d
[rbdr/dotfiles] /
1 'use strict';
2
3 var isError = require('./is-error');
4
5 module.exports = function (x) {
6 if (!isError(x)) throw new TypeError(x + " is not an Error object");
7 return x;
8 };