diff --git a/src/input-params.ts b/src/input-params.ts index 39c27b16..ade5d654 100644 --- a/src/input-params.ts +++ b/src/input-params.ts @@ -76,7 +76,7 @@ export function getJobSummaryOption(): JobSummaryOption { } export function getPRCommentOption(): JobSummaryOption { - return parseJobSummaryOption('add-job-summary-as-pr-commment') + return parseJobSummaryOption('add-job-summary-as-pr-comment') } function parseJobSummaryOption(paramName: string): JobSummaryOption { @@ -89,7 +89,7 @@ function parseJobSummaryOption(paramName: string): JobSummaryOption { case 'on-failure': return JobSummaryOption.OnFailure } - throw TypeError(`The value '${val} is not valid for 'paramName. Valid values are: [never, always, on-failure].`) + throw TypeError(`The value '${val}' is not valid for ${paramName}. Valid values are: [never, always, on-failure].`) } export function getDependencyGraphOption(): DependencyGraphOption { @@ -107,7 +107,7 @@ export function getDependencyGraphOption(): DependencyGraphOption { return DependencyGraphOption.DownloadAndSubmit } throw TypeError( - `The value '${val} is not valid for 'dependency-graph. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.` + `The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.` ) }