From 540758ee99acb5e4cbb6ec0bdf1ad2d081f38fc7 Mon Sep 17 00:00:00 2001
From: John Howard <jhoward@microsoft.com>
Date: Mon, 5 Dec 2016 09:22:42 -0800
Subject: [PATCH] Windows: make.ps1 Throw exception on failure

Signed-off-by: John Howard <jhoward@microsoft.com>
(cherry picked from commit 8c22a00b77043db50a1b4837a66dfb27dab3f070)
Signed-off-by: Victor Vieux <vieux@docker.com>
---
 hack/make.ps1 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hack/make.ps1 b/hack/make.ps1
index 6084b34920..e9e04781bb 100644
--- a/hack/make.ps1
+++ b/hack/make.ps1
@@ -394,6 +394,8 @@ Catch [Exception] {
     Write-Host -ForegroundColor Red  " \___  /  (____  /__`|____/\___  `>____ `| "
     Write-Host -ForegroundColor Red  "     \/        \/             \/     \/ "
     Write-Host
+
+    Throw $_
 }
 Finally {
     if ($global:pushed) { Pop-Location }