From 9491d07a4d6aec122e52b6cc24db333e691253b1 Mon Sep 17 00:00:00 2001 From: Willem Borgesius Date: Thu, 1 Oct 2020 16:30:52 +0200 Subject: [PATCH] Fix MissingPropertyException to show the actual property missing --- .../jenkins/unit/declarative/GenericPipelineDeclaration.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy b/src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy index 26d5a9e0..4300935c 100644 --- a/src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy +++ b/src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy @@ -89,7 +89,7 @@ abstract class GenericPipelineDeclaration { if (metaMethod) { metaMethod.invoke(this, propertyName) } else { - throw new MissingPropertyException(name) + throw new MissingPropertyException(propertyName) } } }