Skip to content

Commit

Permalink
Set StageError cause in ChiselStage (#1382)
Browse files Browse the repository at this point in the history
Signed-off-by: Schuyler Eldridge <[email protected]>

Co-authored-by: Jim Lawson <[email protected]>
  • Loading branch information
seldridge and ucbjrl authored Mar 26, 2020
1 parent dbb024a commit 8184590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/chisel3/stage/ChiselStage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ChiselStage extends Stage with PreservesAll[Phase] {
.augmentString(stackTrace)
.lines
.foreach(line => println(s"${ErrorLog.errTag} $line")) // scalastyle:ignore regex
throw new StageError()
throw new StageError(cause=ce)
}

/** Convert a Chisel module to a CHIRRTL string
Expand Down

0 comments on commit 8184590

Please sign in to comment.