1
0

Merge pull request #900 from freechipsproject/more_verbose_requires

diplomacy: More verbose require
This commit is contained in:
Megan Wachs 2017-07-28 13:23:33 -07:00 committed by GitHub
commit 573890e102

View File

@ -49,8 +49,7 @@ abstract class NodeImp[D, U, EO, EI, B <: Data]
abstract class BaseNode abstract class BaseNode
{ {
// You cannot create a Node outside a LazyModule! require (!LazyModule.stack.isEmpty, "You cannot create a node outside a LazyModule!")
require (!LazyModule.stack.isEmpty)
val lazyModule = LazyModule.stack.head val lazyModule = LazyModule.stack.head
val index = lazyModule.nodes.size val index = lazyModule.nodes.size