Skip to content

Commit 5ee4430

Browse files
revert: error message in EquipmentDeletion
1 parent 239f710 commit 5ee4430

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/gridsuite/modification/modifications/EquipmentDeletion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public EquipmentDeletion(EquipmentDeletionInfos modificationInfos) {
3434
public void check(Network network) {
3535
Identifiable<?> identifiable = ModificationUtils.getInstance().getEquipmentByIdentifiableType(network, modificationInfos.getEquipmentType(), modificationInfos.getEquipmentId());
3636
if (identifiable == null) {
37-
throw new NetworkModificationException(modificationInfos.getEquipmentType() + " with id :" + modificationInfos.getEquipmentId() + " not found");
37+
throw new NetworkModificationException(modificationInfos.getEquipmentType() + " with id :" + modificationInfos.getEquipmentId() + " not found or of bad type");
3838
}
3939
}
4040

0 commit comments

Comments
 (0)