mirror of
https://github.com/Azure/k8s-set-context.git
synced 2026-04-17 22:42:16 +08:00
8 lines
285 B
TypeScript
8 lines
285 B
TypeScript
/**
|
|
* Returns error thrown by core.getInput when input required but not found
|
|
* @param inputName Name of input
|
|
* @returns Error with explanation message
|
|
*/
|
|
export const getRequiredInputError = (inputName: string): Error =>
|
|
Error(`Input required and not supplied: ${inputName}`)
|