Skip to content

Commit

Permalink
Use an other error message
Browse files Browse the repository at this point in the history
If someone get this message as he use a non valid entry it would be very
difficult to find the right place and the causing issue. Maybe something
like that "Used not supported reimport case {}" where{} is replaced by
the wrong value can make it easier for him.
  • Loading branch information
matthias-ronge committed Apr 11, 2023
1 parent 92e3938 commit e66b31e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ public int updateMetadata(Collection<Metadata> currentMetadata, String acquisiti
case REPLACE:
currentMetadata.addAll(updateEntries.isEmpty() ? currentEntries : updateEntries);
break;
default: throw new IllegalStateException("complete switch");
default:
throw new IllegalStateException(
"Used not supported reimport case {}".replace("{}", metadata.getMiddle().toString()));
}
}
return currentMetadata.size() - sizeBefore;
Expand Down

0 comments on commit e66b31e

Please sign in to comment.