mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
Improve repo exception logging
This commit is contained in:
@@ -138,7 +138,7 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand
|
|||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
logger.error("could not open repository", ex);
|
logger.error("could not open repository: " + repository.getNamespaceAndName(), ex);
|
||||||
}
|
}
|
||||||
catch (NullPointerException e)
|
catch (NullPointerException e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ public class GitModificationsCommand extends AbstractGitCommand implements Modif
|
|||||||
return new Modifications(baseRevision, revision, createModifications(treeWalk, commit));
|
return new Modifications(baseRevision, revision, createModifications(treeWalk, commit));
|
||||||
}
|
}
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
log.error("could not open repository", ex);
|
log.error("could not open repository: " + repository.getNamespaceAndName(), ex);
|
||||||
throw new InternalRepositoryException(entity(repository), "could not open repository", ex);
|
throw new InternalRepositoryException(entity(repository), "could not open repository: " + repository.getNamespaceAndName(), ex);
|
||||||
} finally {
|
} finally {
|
||||||
GitUtil.release(revWalk);
|
GitUtil.release(revWalk);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ public class SvnBrowseCommand extends AbstractSvnCommand
|
|||||||
if (FS_NO_SUCH_REVISION.equals(ex.getErrorMessage().getErrorCode())) {
|
if (FS_NO_SUCH_REVISION.equals(ex.getErrorMessage().getErrorCode())) {
|
||||||
throw notFound(entity("Revision", Long.toString(revisionNumber)).in(this.repository));
|
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;
|
return result;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public class SvnChangesetsCommand extends AbstractSvnCommand implements Changese
|
|||||||
repo.log(null, startRev, endRev, true, true, new ChangesetCollector(changesets));
|
repo.log(null, startRev, endRev, true, true, new ChangesetCollector(changesets));
|
||||||
return changesets;
|
return changesets;
|
||||||
} catch (SVNException ex) {
|
} 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();
|
return Optional.empty();
|
||||||
} catch (SVNException ex) {
|
} catch (SVNException ex) {
|
||||||
throw new InternalRepositoryException(repository, "could not open repository", ex);
|
throw new InternalRepositoryException(repository, "could not open repository: " + repository.getNamespaceAndName(), ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user