diff options
| author | 2020-06-26 04:31:28 -0400 | |
|---|---|---|
| committer | 2020-06-26 04:31:28 -0400 | |
| commit | 73b1720f299b517450069ce11f5b29e740301eb0 (patch) | |
| tree | e663ed9195864f93fbe8b320c9b6f431267a28ef | |
| parent | Merge branch 'master' into issue926-paginate-long-lines (diff) | |
Improve LinePaginator.__init__() ValueError message
Co-authored-by: Leon Sandøy <[email protected]>
| -rw-r--r-- | bot/pagination.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/pagination.py b/bot/pagination.py index cd602c715..ef1c9a176 100644 --- a/bot/pagination.py +++ b/bot/pagination.py @@ -60,7 +60,7 @@ class LinePaginator(Paginator): self.suffix = suffix self.max_size = max_size - len(suffix) if scale_to_size < max_size: - raise ValueError("scale_to_size must be >= max_size.") + raise ValueError(f"scale_to_size must be >= max_size. ({scale_to_size} < {max_size})") self.scale_to_size = scale_to_size - len(suffix) self.max_lines = max_lines |