diff options
| author | Jim Lawson | 2016-11-10 10:07:59 -0800 |
|---|---|---|
| committer | Jim Lawson | 2016-11-10 10:07:59 -0800 |
| commit | b936f5e7f906f45ab635ad6e5c45cfec6726f716 (patch) | |
| tree | 6922ed7aa043a83e2d30adf03314ea10131d6b4b /chiselFrontend | |
| parent | 2e62da09ed1ed0725a14185ae76a683da73b32f4 (diff) | |
Replace "throw new Exception" with throwException (consistency).
Diffstat (limited to 'chiselFrontend')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/internal/Builder.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/internal/Builder.scala b/chiselFrontend/src/main/scala/chisel3/internal/Builder.scala index 32ba248c..381626c5 100644 --- a/chiselFrontend/src/main/scala/chisel3/internal/Builder.scala +++ b/chiselFrontend/src/main/scala/chisel3/internal/Builder.scala @@ -165,7 +165,7 @@ private[chisel3] object Builder { } def forcedModule: Module = currentModule match { case Some(module) => module - case None => throw new Exception( + case None => throwException( "Error: Not in a Module. Likely cause: Missed Module() wrap or bare chisel API call." // A bare api call is, e.g. calling Wire() from the scala console). ) |
