mirror of https://github.com/Textualize/rich.git
better ValueError msg
This commit is contained in:
parent
f7ab2afa1f
commit
b698b8d6d2
|
@ -27,7 +27,7 @@ class Rule(JupyterMixin):
|
||||||
) -> None:
|
) -> None:
|
||||||
if cell_len(characters) < 1:
|
if cell_len(characters) < 1:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"'character' argument must at least have a cell width of 1"
|
"'characters' argument must have at least a cell width of 1"
|
||||||
)
|
)
|
||||||
self.title = title
|
self.title = title
|
||||||
self.characters = characters
|
self.characters = characters
|
||||||
|
|
Loading…
Reference in New Issue