Minor fix: show current NO_ID value of the ID counter when printing error
This commit is contained in:
parent
9eee76a6d1
commit
22d827fac4
|
|
@ -2,7 +2,7 @@ class IdCounter:
|
|||
def __init__(self, start_id: int = 0):
|
||||
self.start_id = start_id
|
||||
if self.start_id <= self.NO_ID:
|
||||
raise ValueError("start_id must be greater than -1")
|
||||
raise ValueError(f"start_id must be greater than {self.NO_ID}")
|
||||
self.reset()
|
||||
|
||||
def reset(self) -> None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue