author | wenzelm |
Tue, 18 Oct 2016 10:11:22 +0200 | |
changeset 64295 | 6aefa7e66888 |
parent 64294 | 303976a45afe |
child 64296 | 544481988e65 |
--- a/src/Pure/Admin/isabelle_cronjob.scala Tue Oct 18 10:05:38 2016 +0200 +++ b/src/Pure/Admin/isabelle_cronjob.scala Tue Oct 18 10:11:22 2016 +0200 @@ -172,7 +172,9 @@ val err = res match { case Exn.Res(_) => None - case Exn.Exn(exn) => Some(Exn.message(exn)) + case Exn.Exn(exn) => + val first_line = Library.split_lines(Exn.message(exn)).headOption getOrElse "exception" + Some(first_line) } logger.log_end(end_date, err) }