New: Provides more information on an error message in CPScroller (#2931)

This commit is contained in:
Didier Korthoudt authored and GitHub committed 2020-10-23 08:43:59 +02:00
1 parent 7e08e48a8a
commit 57cc90f89f
1 file changed
+1 -1
+1 -1
View File
@@ -259,7 +259,7 @@ CPThemeStateScrollerKnobDark = CPThemeState("scroller-knob-dark");
- (void)setKnobProportion:(float)aProportion
{
if (!_IS_NUMERIC(aProportion))
[CPException raise:CPInvalidArgumentException reason:"aProportion must be numeric"];
[CPException raise:CPInvalidArgumentException reason:"aProportion must be numeric, was: "+aProportion];
_knobProportion = MIN(1.0, MAX(0.0001, aProportion));