export function makeError(code, message, extras) {
    const result = { error: code, message };
    if (extras?.action !== undefined) {
        result.action = extras.action;
    }
    if (extras?.details !== undefined) {
        result.details = extras.details;
    }
    return result;
}
//# sourceMappingURL=errors.js.map