Merge pull request #900 from freechipsproject/more_verbose_requires
diplomacy: More verbose require
This commit is contained in:
commit
573890e102
@ -49,8 +49,7 @@ abstract class NodeImp[D, U, EO, EI, B <: Data]
|
||||
|
||||
abstract class BaseNode
|
||||
{
|
||||
// You cannot create a Node outside a LazyModule!
|
||||
require (!LazyModule.stack.isEmpty)
|
||||
require (!LazyModule.stack.isEmpty, "You cannot create a node outside a LazyModule!")
|
||||
|
||||
val lazyModule = LazyModule.stack.head
|
||||
val index = lazyModule.nodes.size
|
||||
|
Loading…
Reference in New Issue
Block a user