Skip to content

Commit

Permalink
Clarify error message when there isn't 1 row in the version table.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris AtLee committed Apr 1, 2010
1 parent 7aec728 commit 0b112c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildbot/db/schema/manager.py
Expand Up @@ -27,7 +27,7 @@ def get_db_version(self):
try:
c.execute("SELECT version FROM version")
rows = c.fetchall()
assert len(rows) == 1, "multiple rows in version table!"
assert len(rows) == 1, "%i rows in version table! (should only be 1)" % len(rows)
return rows[0][0]
except (self.dbapi.OperationalError, self.dbapi.ProgrammingError):
# no version table = version 0
Expand Down

0 comments on commit 0b112c2

Please sign in to comment.