tuned message;
authorwenzelm
Tue, 12 Dec 2017 13:34:11 +0100
changeset 67187 3457d7d43ee9
parent 67186 a58bbe66ac81
child 67188 bc7a6455e12a
tuned message;
src/Pure/Thy/present.ML
src/Pure/Thy/present.scala
--- 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;
 
--- a/src/Pure/Thy/present.scala	Tue Dec 12 12:35:01 2017 +0100
+++ b/src/Pure/Thy/present.scala	Tue Dec 12 13:34:11 2017 +0100
@@ -209,7 +209,7 @@
 
     if (!result.ok) {
       cat_error(cat_lines(Latex.latex_errors(dir, root_name)),
-        "Failed to build document in directory " + File.path(dir.absolute_file))
+        "Failed to build document in " + File.path(dir.absolute_file))
     }
 
     bash("[ -f " + root_bash(document_format) + " ] && cp -f " +