Skip to content

Commit

Permalink
Bugfix: missing string format on exception in Instance::getProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartinsanta committed Jan 30, 2024
1 parent 4917bad commit 7d1a194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/main/java/es/urjc/etsii/grafo/io/Instance.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public String getPath() {
public Object getProperty(String key){
Object property = this.properties.get(key);
if(property == null){
throw new IllegalArgumentException("Invalid property %s, check that the property has been set on instance load");
throw new IllegalArgumentException("Invalid property %s, check that the property has been set on instance load".formatted(key));
}
return property;
}
Expand Down

0 comments on commit 7d1a194

Please sign in to comment.