Merged heads

This commit is contained in:
Philipp Czora
2018-08-16 10:47:47 +02:00
parent 9babeecea6
commit a2c7fb22dd
3 changed files with 14 additions and 19 deletions

View File

@@ -305,7 +305,7 @@
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId> <artifactId>mockito-core</artifactId>
<version>${mockito.version}</version> <version>${mockito.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>

View File

@@ -42,8 +42,6 @@ import java.io.InputStream;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
//~--- JDK imports ------------------------------------------------------------
public class HgCatCommandTest extends AbstractHgCommandTestBase { public class HgCatCommandTest extends AbstractHgCommandTestBase {
@Test @Test

View File

@@ -124,10 +124,7 @@ public class ContentResource {
} catch (RevisionNotFoundException e) { } catch (RevisionNotFoundException e) {
LOG.debug("revision '{}' not found in repository {}/{}", revision, namespace, name, e); LOG.debug("revision '{}' not found in repository {}/{}", revision, namespace, name, e);
return Response.status(Status.NOT_FOUND).build(); return Response.status(Status.NOT_FOUND).build();
} catch (IOException e) { } catch (IOException | RepositoryException e) {
LOG.info("error reading repository resource {} from {}/{}", path, namespace, name, e);
return Response.status(Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build();
} catch (RepositoryException e) {
LOG.info("error reading repository resource {} from {}/{}", path, namespace, name, e); LOG.info("error reading repository resource {} from {}/{}", path, namespace, name, e);
return Response.status(Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build(); return Response.status(Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build();
} }