don't print Uninitialized exception name

This commit is contained in:
Mark Harrah 2011-07-25 21:59:22 -04:00
parent eb31cc025a
commit 021009052e
1 changed files with 3 additions and 2 deletions

View File

@ -444,14 +444,15 @@ object BuiltinCommands
val cause = ite.getCause
if(cause == null || cause == ite) logFullException(ite, log) else handleException(cause, s, log)
case _: MessageOnlyException => log.error(e.toString)
case _: Project.Uninitialized => logFullException(e, log, true)
case _ => logFullException(e, log)
}
s.fail
}
def logFullException(e: Throwable, log: Logger)
def logFullException(e: Throwable, log: Logger, messageOnly: Boolean = false)
{
log.trace(e)
log.error(ErrorHandling reducedToString e)
log.error(if(messageOnly) e.getMessage else ErrorHandling reducedToString e)
log.error("Use 'last' for the full log.")
}