Extensions/Common/lib/vsts-task-lib/task.js
function checkPath(p, name) {
    debug('check path : ' + p);
    if (!p || !mock.getResponse('checkPath', p)) {
        setResult(TaskResult.Failed, 'not found ' + name + ': ' + p); // exit
    }
}
function checkPath(p, name) {
    debug('check path : ' + p);
    if (!p || !mock.getResponse('checkPath', p)) {
        setResult(TaskResult.Failed, 'not found ' + name + ': ' + p); // exit
    }
}
------------------------------------------------ Validation Helpers ------------------------------------------------