diff --git a/build.sh b/build.sh
index d67cb32e7caf38fe87d4616c63025ad38a6f7d44..cd2a9ebf5e702b89edded3c8ab7cd412255d8f65 100755
--- a/build.sh
+++ b/build.sh
@@ -101,7 +101,8 @@ pre_build()
      -DVIEWER_CHANNEL:STRING="\"$viewer_channel\"" \
      -DGRID:STRING="\"$viewer_grid\"" \
      -DLL_TESTS:BOOL="$run_tests" \
-     -DTEMPLATE_VERIFIER_OPTIONS:STRING="$template_verifier_options" $template_verifier_master_url
+     -DTEMPLATE_VERIFIER_OPTIONS:STRING="$template_verifier_options" $template_verifier_master_url \
+    || fatal "$variant configuration failed"
 
   end_section "Configure $variant"
 }