preserve original source position of exn;
authorwenzelm
Thu, 28 Oct 2010 22:12:08 +0200
changeset 40237 96fff8c0a853
parent 40236 8694a12611f9
child 40238 edcdecd55655
preserve original source position of exn;
src/HOL/Tools/Datatype/datatype.ML
--- a/src/HOL/Tools/Datatype/datatype.ML	Thu Oct 28 22:11:06 2010 +0200
+++ b/src/HOL/Tools/Datatype/datatype.ML	Thu Oct 28 22:12:08 2010 +0200
@@ -703,7 +703,7 @@
     val (descr, _) = unfold_datatypes tmp_thy dts' sorts dt_info dts' i;
     val _ = check_nonempty descr handle (exn as Datatype_Empty s) =>
       if #strict config then error ("Nonemptiness check failed for datatype " ^ s)
-      else raise exn;
+      else reraise exn;
 
     val _ = message config ("Constructing datatype(s) " ^ commas_quote new_type_names);