mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
Create NotFoundExceptions with id fields
This commit is contained in:
@@ -188,7 +188,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager {
|
||||
repositoryDAO.delete(repository);
|
||||
fireEvent(HandlerEventType.DELETE, repository);
|
||||
} else {
|
||||
throw new RepositoryNotFoundException();
|
||||
throw new RepositoryNotFoundException(repository);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager {
|
||||
if (fresh != null) {
|
||||
fresh.copyProperties(repository);
|
||||
} else {
|
||||
throw new RepositoryNotFoundException();
|
||||
throw new RepositoryNotFoundException(repository);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user