We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40040a0 commit b5a0010Copy full SHA for b5a0010
node/task.ts
@@ -176,8 +176,9 @@ export function assertAgent(minimum: string): void {
176
}
177
178
let agent = getVariable('Agent.Version');
179
+ debug('Detected Agent.Version=' + (agent ? agent : 'undefined'));
180
if (agent && semver.lt(agent, minimum)) {
- throw new Error(`Agent version ${minimum} or higher is required`);
181
+ throw new Error(`Agent version ${minimum} or higher is required. Detected Agent version: ${agent}`);
182
183
184
@@ -2751,4 +2752,4 @@ if (!global['_vsts_task_lib_loaded']) {
2751
2752
im._loadData();
2753
im._exposeProxySettings();
2754
im._exposeCertSettings();
-}
2755
+}
0 commit comments