"use strict";
(function (WatchTaskErrorTypes) {
    WatchTaskErrorTypes[WatchTaskErrorTypes["WatchTaskNameNotFound"] = "WatchTaskNameNotFound"] = "WatchTaskNameNotFound";
})(exports.WatchTaskErrorTypes || (exports.WatchTaskErrorTypes = {}));
var WatchTaskErrorTypes = exports.WatchTaskErrorTypes;
function gatherWatchTaskErrors(outgoing, input) {
    return [
        getModuleErrors,
    ].reduce(function (all, fn) { return all.concat(fn(outgoing, input)); }, []);
}
exports.gatherWatchTaskErrors = gatherWatchTaskErrors;
function getModuleErrors(outgoing, input) {
    if (!input.watch[outgoing.taskName]) {
        return [{
                type: WatchTaskErrorTypes.WatchTaskNameNotFound,
                taskName: outgoing.taskName
            }];
    }
    return [];
}
//# sourceMappingURL=watch.errors.js.map