diff --git a/lib/git.js b/lib/git.js index 7ce745a2..e6e02939 100644 --- a/lib/git.js +++ b/lib/git.js @@ -23,7 +23,7 @@ function init() { util_1.isNullOrUndefined(constants_1.action.gitHubToken) && util_1.isNullOrUndefined(constants_1.action.ssh)) { core_1.setFailed("You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true."); - throw Error("No deployment token/method was provided."); + throw Error("No deployment token/method was provided. You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true."); } if (constants_1.action.build.startsWith("/") || constants_1.action.build.startsWith("./")) { core_1.setFailed(`The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.`); diff --git a/src/git.ts b/src/git.ts index ba70d192..df7d78d6 100644 --- a/src/git.ts +++ b/src/git.ts @@ -23,7 +23,9 @@ export async function init(): Promise { "You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true." ); - throw Error("No deployment token/method was provided."); + throw Error( + "No deployment token/method was provided. You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true." + ); } if (action.build.startsWith("/") || action.build.startsWith("./")) { @@ -31,7 +33,9 @@ export async function init(): Promise { `The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.` ); - throw Error("Incorrectly formatted build folder."); + throw Error( + "Incorrectly formatted build folder. The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly." + ); } console.log(`Deploying using ${tokenType}... 🔑`);