Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #769 from sonatype/NEXUS-5594-handle-repository-no…
Browse files Browse the repository at this point in the history
…t-available

(NEXUS-5594) handle RepositoryNotAvailableException and avoid error log,...
  • Loading branch information
jdillon committed Mar 11, 2013
2 parents 6651c6d + b8644f3 commit 2486b4e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.sonatype.nexus.index.IndexerManager;
import org.sonatype.nexus.proxy.AccessDeniedException;
import org.sonatype.nexus.proxy.NoSuchRepositoryException;
import org.sonatype.nexus.proxy.RepositoryNotAvailableException;
import org.sonatype.nexus.proxy.ResourceStoreRequest;
import org.sonatype.nexus.proxy.access.AccessManager;
import org.sonatype.nexus.proxy.access.Action;
Expand Down Expand Up @@ -138,6 +139,10 @@ protected Object retrieveView( ResourceStoreRequest request, RepositoryItemUid i
// that is fine, user doesn't have access
continue;
}
catch (RepositoryNotAvailableException e) {
// this could happen normally if a repository is not available, do not complain too loudly
getLogger().trace("Repository not available; ignoring", e);
}
catch ( Exception e )
{
getLogger().error( e.getMessage(), e );
Expand Down

0 comments on commit 2486b4e

Please sign in to comment.