[POS-commit] r3969 - stoq/trunk/stoq/lib
Henrique Romano
henrique at async.com.br
Mon Jul 24 14:39:11 BRT 2006
Author: henrique
Date: Mon Jul 24 14:39:10 2006
New Revision: 3969
Modified:
stoq/trunk/stoq/lib/startup.py
Log:
Minor change, improving a little the exception message.
Modified: stoq/trunk/stoq/lib/startup.py
==============================================================================
--- stoq/trunk/stoq/lib/startup.py (original)
+++ stoq/trunk/stoq/lib/startup.py Mon Jul 24 14:39:10 2006
@@ -80,8 +80,8 @@
query = AND(q1, q2)
stations = table.select(query, connection=conn)
if stations.count() != 1:
- raise StoqlibError("You should have only one station for the "
- "identifier %s" % identifier)
+ raise StoqlibError("You should have one station for the identifier "
+ "%s, got %d." % (identifier, stations.count()))
station = stations[0]
identifier = station.branch.identifier
register_current_branch_identifier(identifier)
More information about the POS-commit
mailing list