UNPKG

osu-api-extended

Version:

Advanced osu! api wrapper for v1 and v2, with extra stuff

13 lines (12 loc) 366 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleErrors = void 0; const auth_1 = require("../utility/auth"); const handleErrors = (message) => { if (auth_1.settings.throwErrors) { throw new Error(message); } ; return { error: new Error(message) }; }; exports.handleErrors = handleErrors;