From 8c1e95787d911319d8c7c3c7833cc94f9f439c8e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 8 Oct 2017 19:47:05 +0200 Subject: [PATCH] Improve error message for PercOrInt Fixes #3068 --- qutebrowser/config/configtypes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py index aac320cbb..46727210e 100644 --- a/qutebrowser/config/configtypes.py +++ b/qutebrowser/config/configtypes.py @@ -828,7 +828,8 @@ class PercOrInt(_Numeric): if isinstance(value, str): if not value.endswith('%'): - raise configexc.ValidationError(value, "does not end with %") + raise configexc.ValidationError( + value, "needs to end with % or be an integer") try: intval = int(value[:-1])