mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 13:37:20 +02:00
Improve repo exception logging
This commit is contained in:
@@ -138,7 +138,7 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
logger.error("could not open repository", ex);
|
||||
logger.error("could not open repository: " + repository.getNamespaceAndName(), ex);
|
||||
}
|
||||
catch (NullPointerException e)
|
||||
{
|
||||
|
||||
@@ -81,8 +81,8 @@ public class GitModificationsCommand extends AbstractGitCommand implements Modif
|
||||
return new Modifications(baseRevision, revision, createModifications(treeWalk, commit));
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
log.error("could not open repository", ex);
|
||||
throw new InternalRepositoryException(entity(repository), "could not open repository", ex);
|
||||
log.error("could not open repository: " + repository.getNamespaceAndName(), ex);
|
||||
throw new InternalRepositoryException(entity(repository), "could not open repository: " + repository.getNamespaceAndName(), ex);
|
||||
} finally {
|
||||
GitUtil.release(revWalk);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user