diff options
| author | Chick Markley | 2018-07-07 11:14:28 -0700 |
|---|---|---|
| committer | Jack Koenig | 2018-07-07 11:14:28 -0700 |
| commit | f03a88032fa6dd6abd3cd951608561640086106a (patch) | |
| tree | a4c87f51e11c9530867e9c3908c8af64ce61f266 /src | |
| parent | ceac36d7ce1223078ca47bc097884532faacd7e1 (diff) | |
Missing match on PassExceptions fixed. (#844)
This caused wrong message: "File a Firrtl Issue"
Instead of the correct "Reference XX is not fully initialized"
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/firrtl/Driver.scala | 7 |
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)) } |
