mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2025-04-06 06:08:26 +00:00
9 lines
185 B
JavaScript
9 lines
185 B
JavaScript
"use strict";
|
|
|
|
var isError = require("./is-error");
|
|
|
|
module.exports = function (value) {
|
|
if (!isError(value)) throw new TypeError(value + " is not an Error object");
|
|
return value;
|
|
};
|