Skip to content

Commit 5c300ce

Browse files
authored
Merge pull request #300 from Willem1987/fix-missing-property-exception
Fix MissingPropertyException to show the actual property missing
2 parents dff6f47 + 9491d07 commit 5c300ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ abstract class GenericPipelineDeclaration {
8989
if (metaMethod) {
9090
metaMethod.invoke(this, propertyName)
9191
} else {
92-
throw new MissingPropertyException(name)
92+
throw new MissingPropertyException(propertyName)
9393
}
9494
}
9595
}

0 commit comments

Comments
 (0)