Skip to content

Commit 5d68ca2

Browse files
author
Gordon B. McMillan
committed
Improve an error message.
1 parent f6b2615 commit 5d68ca2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roundup/hyperdb.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: hyperdb.py,v 1.69 2002-06-17 23:15:29 richard Exp $
18+
# $Id: hyperdb.py,v 1.70 2002-06-27 12:06:20 gmcm Exp $
1919

2020
__doc__ = """
2121
Hyperdatabase implementation, especially field types.
@@ -428,7 +428,7 @@ def create(self, **propvalues):
428428
l = []
429429
for entry in value:
430430
if type(entry) != type(''):
431-
raise ValueError, 'link value must be String'
431+
raise ValueError, '"%s" link value (%s) must be String' % (key, value)
432432
# if it isn't a number, it's a key
433433
if not num_re.match(entry):
434434
try:
@@ -1169,6 +1169,9 @@ def Choice(name, db, *options):
11691169

11701170
#
11711171
# $Log: not supported by cvs2svn $
1172+
# Revision 1.69 2002/06/17 23:15:29 richard
1173+
# Can debug to stdout now
1174+
#
11721175
# Revision 1.68 2002/06/11 06:52:03 richard
11731176
# . #564271 ] find() and new properties
11741177
#

0 commit comments

Comments
 (0)