Use constant instead of hardcoded value

Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
This commit is contained in:
Jonathan Mezach
2023-02-17 16:03:17 +01:00
parent 2f5f5a742d
commit 0741521aa9
@@ -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`,
);
}