template-project/node_modules/batch-cluster/dist/Parser.js
2025-05-30 18:13:30 +08:00

13 lines
420 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SimpleParser = void 0;
const String_1 = require("./String");
const SimpleParser = (stdout, stderr, passed) => {
if (!passed)
throw new Error("task failed");
if ((0, String_1.notBlank)(stderr))
throw new Error(stderr);
return stdout;
};
exports.SimpleParser = SimpleParser;
//# sourceMappingURL=Parser.js.map