Skip to content

Commit

Permalink
Log resolving errors
Browse files Browse the repository at this point in the history
  • Loading branch information
briandealwis committed Jun 28, 2018
1 parent aa89aa3 commit f72879f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.util.LinkedHashSet;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.maven.artifact.Artifact;
import org.eclipse.core.runtime.CoreException;
Expand Down Expand Up @@ -158,6 +159,7 @@ public IStatus resolveContainer(
} else {
library = CloudLibraries.getLibrary(libraryId);
}

if (library != null) {
List<Job> sourceAttacherJobs = new ArrayList<>();
LibraryClasspathContainer container =
Expand All @@ -175,6 +177,7 @@ public IStatus resolveContainer(
}
return Status.OK_STATUS;
} catch (CoreException | IOException ex) {
logger.log(Level.SEVERE, "Could not resolve container: " + containerPath, ex);
return StatusUtil.error(
this, Messages.getString("TaskResolveContainerError", containerPath), ex);
}
Expand Down

0 comments on commit f72879f

Please sign in to comment.