summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main/scala/chisel3/core/Module.scala
diff options
context:
space:
mode:
authorJack Koenig2018-06-29 17:52:32 -0700
committerGitHub2018-06-29 17:52:32 -0700
commitb17998eacb8e7b38b90829279e852bf8d5911f83 (patch)
tree423c4e2b0841c3f92c1c85a101f8c736ebce0669 /chiselFrontend/src/main/scala/chisel3/core/Module.scala
parent55c98cbb0f15c98cc58f9f55c9190acfd6cb6f38 (diff)
Catch returns from within when blocks and provide an error message (#842)
Resolves #841
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Module.scala')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/Module.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Module.scala b/chiselFrontend/src/main/scala/chisel3/core/Module.scala
index c4a48fb4..0cf05496 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/Module.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/Module.scala
@@ -49,7 +49,7 @@ object Module {
val module: T = bc // bc is actually evaluated here
if (Builder.whenDepth != 0) {
- throwException("Internal Error! When depth is != 0, this should not be possible")
+ throwException("Internal Error! when() scope depth is != 0, this should have been caught!")
}
if (Builder.readyForModuleConstr) {
throwException("Error: attempted to instantiate a Module, but nothing happened. " +