From 9556a7371292a1362ac0b3eb5fbfd2f06f3d5859 Mon Sep 17 00:00:00 2001 From: Johannes Bader Date: Mon, 17 Jul 2017 18:12:00 -0700 Subject: [PATCH] fix linter script (#1434) --- test/linter.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/linter.js b/test/linter.js index de86f2e08c69..411f8b58dc84 100644 --- a/test/linter.js +++ b/test/linter.js @@ -14,14 +14,15 @@ describe('AutoRest Linter validation:', function () { // return (item.match(/.Microsoft.ContainerRegistry.*2017-03-01.*/ig) !== null); // }); for (const config of configsToProcess) { - it(config + ' should honor linter validation rules.', async function (done) { + it(config + ' should honor linter validation rules.', async function () { var cmd = `autorest --validation --azure-validator ${config} --message-format=json`; console.log(`Executing: ${cmd}`); let result; try { result = execSync(cmd, { encoding: 'utf8' }); } catch (err) { - throw new Error('AutoRest Linter validation failed.'); + console.dir(err, {depth: null, colors: true}); + throw err; } }); }