diff options
| author | Jack Koenig | 2019-02-22 13:59:33 -0800 |
|---|---|---|
| committer | mergify[bot] | 2019-02-22 21:59:33 +0000 |
| commit | 0ace0218d3151df2d102463dd682128a88ae7be6 (patch) | |
| tree | 1e7728ceb4b7cd160e3547decc4be1ef77d5aeda /src/main/scala/firrtl/Driver.scala | |
| parent | 50d9571bc26c445fd9ebaeb3c06d80d598397405 (diff) | |
Stop reporting exceptions in custom transformations as internal errors (#867)
Instead, just forward the exception
Diffstat (limited to 'src/main/scala/firrtl/Driver.scala')
| -rw-r--r-- | src/main/scala/firrtl/Driver.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/Driver.scala b/src/main/scala/firrtl/Driver.scala index 47841cec..c277e120 100644 --- a/src/main/scala/firrtl/Driver.scala +++ b/src/main/scala/firrtl/Driver.scala @@ -248,6 +248,8 @@ object Driver { case p: PassException => throw p case p: PassExceptions => throw p case p: FIRRTLException => throw p + // Propagate exceptions from custom transforms + case CustomTransformException(cause) => throw cause // Treat remaining exceptions as internal errors. case e: Exception => throwInternalError(exception = Some(e)) } |
