aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/firrtl/Driver.scala7
1 files changed, 4 insertions, 3 deletions
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))
}