UNPKG

328 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Bail = void 0;
4const base_1 = require("../base");
5class Bail {
6 run(context) {
7 if (context.errors.length > 0) {
8 throw new base_1.ValidationHalt();
9 }
10 return Promise.resolve();
11 }
12}
13exports.Bail = Bail;