Correct usage of RepositoryNotFoundException

This commit is contained in:
René Pfeuffer
2018-09-10 08:36:05 +02:00
parent eff51c3b37
commit 9198cac0a5
4 changed files with 9 additions and 7 deletions

View File

@@ -61,8 +61,7 @@ public final class HealthChecker {
Repository repository = repositoryManager.get(id);
if (repository == null) {
throw new RepositoryNotFoundException(
"could not find repository with id ".concat(id));
throw new RepositoryNotFoundException(id);
}
doCheck(repository);