From 8cb3a6f68df53fc24c145784c5ac0ada228b3257 Mon Sep 17 00:00:00 2001 From: Paul Merlin Date: Thu, 16 Jan 2020 10:07:36 +0100 Subject: [PATCH] Let failure message link to how to report validation errors Signed-off-by: Paul Merlin --- dist/index.js | 2 +- src/main.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 325fbb6..276d122 100644 --- a/dist/index.js +++ b/dist/index.js @@ -345,7 +345,7 @@ function run() { core.info(result.toDisplayString()); } else { - core.setFailed(result.toDisplayString()); + core.setFailed(`Gradle Wrapper Validation Failed!\n See https://github.com/gradle/wrapper-validation-action#reporting-failures\n${result.toDisplayString()}`); } } catch (error) { diff --git a/src/main.ts b/src/main.ts index 653dba0..bb1cd20 100644 --- a/src/main.ts +++ b/src/main.ts @@ -14,7 +14,9 @@ export async function run(): Promise { if (result.isValid()) { core.info(result.toDisplayString()) } else { - core.setFailed(result.toDisplayString()) + core.setFailed( + `Gradle Wrapper Validation Failed!\n See https://github.com/gradle/wrapper-validation-action#reporting-failures\n${result.toDisplayString()}` + ) } } catch (error) { core.setFailed(error.message)