Improve repo exception logging

This commit is contained in:
Eduard Heimbuch
2023-06-15 12:43:06 +02:00
parent 217a2e155e
commit e4d846b0d4
4 changed files with 6 additions and 6 deletions

View File

@@ -105,7 +105,7 @@ public class SvnBrowseCommand extends AbstractSvnCommand
if (FS_NO_SUCH_REVISION.equals(ex.getErrorMessage().getErrorCode())) {
throw notFound(entity("Revision", Long.toString(revisionNumber)).in(this.repository));
}
logger.error("could not open repository", ex);
logger.error("could not open repository: " + repository.getNamespaceAndName(), ex);
}
return result;

View File

@@ -51,7 +51,7 @@ public class SvnChangesetsCommand extends AbstractSvnCommand implements Changese
repo.log(null, startRev, endRev, true, true, new ChangesetCollector(changesets));
return changesets;
} catch (SVNException ex) {
throw new InternalRepositoryException(repository, "could not open repository", ex);
throw new InternalRepositoryException(repository, "could not open repository: " + repository.getNamespaceAndName(), ex);
}
}
@@ -69,7 +69,7 @@ public class SvnChangesetsCommand extends AbstractSvnCommand implements Changese
}
return Optional.empty();
} catch (SVNException ex) {
throw new InternalRepositoryException(repository, "could not open repository", ex);
throw new InternalRepositoryException(repository, "could not open repository: " + repository.getNamespaceAndName(), ex);
}
}
}