src/Pure/Thy/present.ML
changeset 67187 3457d7d43ee9
parent 67180 dcac4659d482
child 67192 26f548370e8d
--- a/src/Pure/Thy/present.ML	Tue Dec 12 12:35:01 2017 +0100
+++ b/src/Pure/Thy/present.ML	Tue Dec 12 13:34:11 2017 +0100
@@ -197,10 +197,7 @@
     val _ = if verbose then writeln script else ();
     val {out, err, rc, ...} = Bash.process script;
     val _ = if verbose then writeln (trim_line (normalize_lines out)) else ();
-    val _ =
-      if not (File.exists doc_path) orelse rc <> 0 then
-        cat_error (trim_line err) ("Failed to build document " ^ quote (show_path doc_path))
-      else ();
+    val _ = if not (File.exists doc_path) orelse rc <> 0 then error (trim_line err) else ();
     val _ = if purge andalso rc = 0 then Isabelle_System.rm_tree dir else ();
   in doc_path end;