From e3da09aa5e690735501c616036c1d462d70666a3 Mon Sep 17 00:00:00 2001 From: ioannispan Date: Wed, 26 Jun 2024 13:54:54 +0200 Subject: [PATCH] Implement error handling Co-authored-by: Veselin Nikolov --- .../org/neo4j/gds/algorithms/community/CommunityCompanion.java | 2 +- .../neo4j/gds/algorithms/community/CommunityCompanionTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/algo/src/main/java/org/neo4j/gds/algorithms/community/CommunityCompanion.java b/algo/src/main/java/org/neo4j/gds/algorithms/community/CommunityCompanion.java index 2cc11ccb6a..ca7c0937ef 100644 --- a/algo/src/main/java/org/neo4j/gds/algorithms/community/CommunityCompanion.java +++ b/algo/src/main/java/org/neo4j/gds/algorithms/community/CommunityCompanion.java @@ -229,7 +229,7 @@ public static NodePropertyValues extractSeedingNodePropertyValues(Graph graph, S if (nodePropertyValues.valueType() != ValueType.LONG) { throw new IllegalArgumentException( formatWithLocale( - " Provided seeding property `%s` does not comprise exclusively of long values", + "Provided seeding property `%s` does not comprise exclusively of long values", seedingProperty )); } diff --git a/algo/src/test/java/org/neo4j/gds/algorithms/community/CommunityCompanionTest.java b/algo/src/test/java/org/neo4j/gds/algorithms/community/CommunityCompanionTest.java index f7976eaf41..f5d0cad590 100644 --- a/algo/src/test/java/org/neo4j/gds/algorithms/community/CommunityCompanionTest.java +++ b/algo/src/test/java/org/neo4j/gds/algorithms/community/CommunityCompanionTest.java @@ -57,6 +57,6 @@ void shouldThrowForNonLongValues(){ assertThatThrownBy(()-> CommunityCompanion.extractSeedingNodePropertyValues(graph,"foo")) .hasMessageContaining( - "Provided seeding property `foo` does not comprise exclusively of long values"); + "Provided seeding property `foo` does not comprise exclusively of long values"); } }