From f637233e97c1dee118097b25869a880df640ba8b Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 6 Sep 2013 18:57:45 +0300 Subject: Show invalid value in validate() --- gsxws/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsxws/core.py b/gsxws/core.py index 9769da5..9791850 100644 --- a/gsxws/core.py +++ b/gsxws/core.py @@ -116,7 +116,7 @@ def validate(value, what=None): result = None if not isinstance(value, basestring): - raise ValueError('%s is not valid input') + raise ValueError('%s is not valid input' % value) rex = { 'partNumber': r'^([A-Z]{1,2})?\d{3}\-?(\d{4}|[A-Z]{1,2})(/[A-Z])?$', -- cgit v1.2.3