From f03a88032fa6dd6abd3cd951608561640086106a Mon Sep 17 00:00:00 2001 From: Chick Markley Date: Sat, 7 Jul 2018 11:14:28 -0700 Subject: Missing match on PassExceptions fixed. (#844) This caused wrong message: "File a Firrtl Issue" Instead of the correct "Reference XX is not fully initialized"--- src/main/scala/firrtl/Driver.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/scala/firrtl/Driver.scala b/src/main/scala/firrtl/Driver.scala index 2315ad55..d96bb903 100644 --- a/src/main/scala/firrtl/Driver.scala +++ b/src/main/scala/firrtl/Driver.scala @@ -14,7 +14,7 @@ import logger.Logger import Parser.{IgnoreInfo, InfoMode} import annotations._ import firrtl.annotations.AnnotationYamlProtocol._ -import firrtl.passes.PassException +import firrtl.passes.{PassException, PassExceptions} import firrtl.transforms._ import firrtl.Utils.throwInternalError @@ -244,8 +244,9 @@ object Driver { catch { // Rethrow the exceptions which are expected or due to the runtime environment (out of memory, stack overflow) case p: ControlThrowable => throw p - case p: PassException => throw p - case p: FIRRTLException => throw p + case p: PassException => throw p + case p: PassExceptions => throw p + case p: FIRRTLException => throw p // Treat remaining exceptions as internal errors. case e: Exception => throwInternalError(exception = Some(e)) } -- cgit v1.2.3