summaryrefslogtreecommitdiff
path: root/src/main/scala
diff options
context:
space:
mode:
authorSchuyler Eldridge2020-03-10 21:18:36 -0400
committerSchuyler Eldridge2020-03-11 16:04:05 -0400
commitd67c4100bd9e24cb9337ad932ba342fd5c49dee4 (patch)
tree89a379e775edef44a03fbd6112249bb9b59404af /src/main/scala
parentd83235f635e4b048c063c8314e1340bca2db395f (diff)
Wrap elaboration in ChiselException
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> squash! Wrap elaboration in ChiselException
Diffstat (limited to 'src/main/scala')
-rw-r--r--src/main/scala/chisel3/stage/ChiselAnnotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/chisel3/stage/ChiselAnnotations.scala b/src/main/scala/chisel3/stage/ChiselAnnotations.scala
index bfce0e8d..11697d7d 100644
--- a/src/main/scala/chisel3/stage/ChiselAnnotations.scala
+++ b/src/main/scala/chisel3/stage/ChiselAnnotations.scala
@@ -52,7 +52,7 @@ case class ChiselGeneratorAnnotation(gen: () => RawModule) extends NoTargetAnnot
} catch {
case e @ (_: OptionsException | _: ChiselException) => throw e
case e: Throwable =>
- throw new OptionsException(s"Exception thrown when elaborating ChiselGeneratorAnnotation", e)
+ throw new ChiselException(s"Exception thrown when elaborating ChiselGeneratorAnnotation", e)
}
}