mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
better error msg
This commit is contained in:
parent
31be8b4034
commit
4c78b0821c
@ -203,7 +203,7 @@ class Signal(object):
|
|||||||
# set next methods
|
# set next methods
|
||||||
def _setNextBool(self, val):
|
def _setNextBool(self, val):
|
||||||
if not val in (0, 1):
|
if not val in (0, 1):
|
||||||
raise ValueError("Expected value 0 or 1, got %s" % val)
|
raise ValueError("Expected boolean value, got %s (%s)" % (repr(val), type(val)))
|
||||||
self._next = val
|
self._next = val
|
||||||
|
|
||||||
def _setNextInt(self, val):
|
def _setNextInt(self, val):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user