Skip to content

Commit

Permalink
Updated error message to reflect new name of value
Browse files Browse the repository at this point in the history
  • Loading branch information
malachyb committed Nov 15, 2023
1 parent 8fca27f commit 70f7d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
}
Expand Down

0 comments on commit 70f7d3e

Please sign in to comment.