throw ServiceNotEnabledException if git config is not valid

This commit is contained in:
Sebastian Sdorra
2011-06-17 13:30:33 +02:00
parent 65bd982b88
commit 468fe30e93

View File

@@ -181,6 +181,15 @@ public class GitRepositoryResolver
repository = RepositoryCache.open(FileKey.lenient(gitdir, FS.DETECTED),
true);
}
else
{
if (logger.isWarnEnabled())
{
logger.warn("gitconfig is not valid, the service is not available");
}
throw new ServiceNotEnabledException();
}
}
catch (RuntimeException e)
{