Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the error the styling errors
Browse files Browse the repository at this point in the history
Louis Murerwa committed Jun 29, 2020
1 parent 47ed51d commit 090d655
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -46,8 +46,7 @@
class RegistryEndpointCaller<T> {

/**
* <a href=
* "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308">https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308</a>.
* <a href = "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308">https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308</a>.
*/
@VisibleForTesting static final int STATUS_CODE_PERMANENT_REDIRECT = 308;

@@ -208,7 +207,7 @@ RegistryErrorException newRegistryErrorException(ResponseException responseExcep
registryErrorExceptionBuilder.addReason(
"registry returned error code "
+ responseException.getStatusCode()
+ "; possible causes include invalid or wrong reference \n");
+ "; but did not return any details; possible causes include invalid or wrong reference, or proxy/firewall/VPN interfering \n");
}
return registryErrorExceptionBuilder.build();
}
Original file line number Diff line number Diff line change
@@ -436,7 +436,7 @@ public void testNewRegistryErrorException_nonJsonErrorOutput() {
}

@Test
public void testNewRegistryErrorException_nullJsonErrorOutput() {
public void testNewRegistryErrorException_noOutputFromRegistry() {
ResponseException httpException = Mockito.mock(ResponseException.class);
// Registry returning null error output
Mockito.when(httpException.getContent()).thenReturn(null);
@@ -447,7 +447,7 @@ public void testNewRegistryErrorException_nullJsonErrorOutput() {
Assert.assertSame(httpException, registryException.getCause());
Assert.assertEquals(
"Tried to actionDescription but failed because: registry returned error code 404; "
+ "possible causes include invalid or wrong reference \n"
+ "but did not return any details; possible causes include invalid or wrong reference, or proxy/firewall/VPN interfering \n"
+ " | If this is a bug, please file an issue at "
+ "https://github.com/GoogleContainerTools/jib/issues/new",
registryException.getMessage());

0 comments on commit 090d655

Please sign in to comment.