From 0741521aa9480747fb620784c463b5538c12dd58 Mon Sep 17 00:00:00 2001 From: Jonathan Mezach Date: Fri, 17 Feb 2023 16:03:17 +0100 Subject: [PATCH] Use constant instead of hardcoded value Signed-off-by: Jonathan Mezach --- plugins/octopus-deploy/src/utils/getAnnotationFromEntity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/octopus-deploy/src/utils/getAnnotationFromEntity.ts b/plugins/octopus-deploy/src/utils/getAnnotationFromEntity.ts index 96ac4d19f7..e59a32235f 100644 --- a/plugins/octopus-deploy/src/utils/getAnnotationFromEntity.ts +++ b/plugins/octopus-deploy/src/utils/getAnnotationFromEntity.ts @@ -22,7 +22,7 @@ export function getAnnotationFromEntity(entity: Entity): string { entity.metadata.annotations?.[OCTOPUS_DEPLOY_PROJECT_ID_ANNOTATION]; if (!annotation) { throw new Error( - 'Value for annotation octopus.com/project-id was not found', + `Value for annotation ${OCTOPUS_DEPLOY_PROJECT_ID_ANNOTATION} was not found`, ); }