| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 129f786 commit 4d8c436
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,14 +67,14 @@ public String awaitImageId(long timeout, TimeUnit timeUnit) { | |||
| 67 | 67 | } | |
| 68 | 68 | ||
| 69 | 69 | private String getImageId() { | |
| 70 | - if (imageId != null) { | ||
| 71 | - return imageId; | ||
| 70 | + if (error != null) { | ||
| 71 | + throw new DockerClientException("Could not build image: " + error); | ||
| 72 | 72 | } | |
| 73 | 73 | ||
| 74 | - if (error == null) { | ||
| 75 | - throw new DockerClientException("Could not build image"); | ||
| 74 | + if (imageId != null) { | ||
| 75 | + return imageId; | ||
| 76 | 76 | } | |
| 77 | 77 | ||
| 78 | - throw new DockerClientException("Could not build image: " + error); | ||
| 78 | + throw new DockerClientException("Could not build image"); | ||
| 79 | 79 | } | |
| 80 | 80 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments