author | wenzelm |
Wed, 11 Mar 2009 20:54:03 +0100 | |
changeset 30460 | c999618d225e |
parent 30459 | 52361140a0d1 |
child 30461 | 00323c45ea83 |
--- a/src/Pure/Isar/toplevel.ML Wed Mar 11 20:42:16 2009 +0100 +++ b/src/Pure/Isar/toplevel.ML Wed Mar 11 20:54:03 2009 +0100 @@ -294,9 +294,10 @@ fun debugging f x = if ! debug then - (case exception_trace (fn () => SOME (f x) handle UNDEF => NONE) of - SOME y => y - | NONE => raise UNDEF) + Exn.release (exception_trace (fn () => + Exn.Result (f x) handle + exn as UNDEF => Exn.Exn exn + | exn as EXCURSION_FAIL _ => Exn.Exn exn)) else f x; fun toplevel_error f x =