Browse Source

Return proper exit code on builder panic

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 8 năm trước cách đây
mục cha
commit
385f1174ff
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      cli/command/image/build.go

+ 1 - 0
cli/command/image/build.go

@@ -305,6 +305,7 @@ func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
 			}
 			return cli.StatusError{Status: jerr.Message, StatusCode: jerr.Code}
 		}
+		return err
 	}
 
 	// Windows: show error message about modified file permissions if the