Browse code

Return proper exit code on builder panic

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 385f1174ff6905243c51d97d641d815a520229ff)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>

Tonis Tiigi authored on 2017/03/22 11:09:02
Showing 1 changed files
... ...
@@ -305,6 +305,7 @@ func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
305 305
 			}
306 306
 			return cli.StatusError{Status: jerr.Message, StatusCode: jerr.Code}
307 307
 		}
308
+		return err
308 309
 	}
309 310
 
310 311
 	// Windows: show error message about modified file permissions if the