From 70f7d3ef63df6d21bb0b1bcdefd0610bad0c3fb5 Mon Sep 17 00:00:00 2001 From: malachy Date: Wed, 15 Nov 2023 16:26:55 +0000 Subject: [PATCH] Updated error message to reflect new name of value --- cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java | 2 +- .../src/test/kotlin/net/corda/plugins/cpb2/CpbSharedName.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java b/cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java index 51dd7103e..11505c2fa 100644 --- a/cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java +++ b/cordapp-cpk2/src/main/java/net/corda/plugins/cpb2/CpbTask.java @@ -82,7 +82,7 @@ private boolean isValidCPK(@NotNull FileTreeElement element) { if (cpkCordappName != null) { if (cpkNames.containsKey(cpkCordappName)) { if (!cpkNames.get(cpkCordappName).equals(manifest)) { - throw new InvalidUserDataException("Two CPKs may not share a cordappName. Error in " + cpkCordappName); + throw new InvalidUserDataException("Two CPKs may not share a cordappCpkName. Error in " + cpkCordappName); } } else { cpkNames.put(cpkCordappName, manifest); diff --git a/cordapp-cpk2/src/test/kotlin/net/corda/plugins/cpb2/CpbSharedName.kt b/cordapp-cpk2/src/test/kotlin/net/corda/plugins/cpb2/CpbSharedName.kt index 0c659b979..e884d5b58 100644 --- a/cordapp-cpk2/src/test/kotlin/net/corda/plugins/cpb2/CpbSharedName.kt +++ b/cordapp-cpk2/src/test/kotlin/net/corda/plugins/cpb2/CpbSharedName.kt @@ -43,7 +43,7 @@ class CpbSharedName { ) } - val expectedMessage = "Two CPKs may not share a cordappName." + val expectedMessage = "Two CPKs may not share a cordappCpkName." assert(e.message!!.contains(expectedMessage)) { "Error message does not match expected value. Error message should contain \"$expectedMessage\"" }