mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Throwing RepositoryNotFoundException when not found.
This commit is contained in:
@@ -25,6 +25,13 @@ public class SnapshotRepositoryBuilder implements RepositorySource {
|
||||
|
||||
@Override
|
||||
public Repository getRepositoryWithNameAtRootDirectory(String name, File rootDirectory) throws RepositoryNotFoundException, ServiceNotEnabledException {
|
||||
try {
|
||||
if (!writeLatexDataSource.repositoryExists(name)) {
|
||||
throw new RepositoryNotFoundException(name);
|
||||
}
|
||||
} catch (FailedConnectionException e) {
|
||||
throw new ServiceNotEnabledException();
|
||||
}
|
||||
File repositoryDirectory = new File(rootDirectory, name);
|
||||
|
||||
Repository repository = null;
|
||||
|
||||
Reference in New Issue
Block a user