Skip to content

Commit

Permalink
enhance the message about db upgrade
Browse files Browse the repository at this point in the history
Now people can just copy paste the command
  • Loading branch information
Pierre Tardy committed Feb 19, 2015
1 parent b8b2cb9 commit 4f7cef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/buildbot/db/connector.py
Expand Up @@ -45,7 +45,7 @@
The Buildmaster database needs to be upgraded before this version of
buildbot can run. Use the following command-line
buildbot upgrade-master path/to/master
buildbot upgrade-master {basedir}
to upgrade the database, and try starting the buildmaster again. You may
want to make a backup of your buildmaster before doing so.
Expand Down Expand Up @@ -115,7 +115,7 @@ def setup(self, check_version=True, verbose=True):

def check_current(res):
if not res:
for l in upgrade_message.split('\n'):
for l in upgrade_message.format(basedir=self.master.basedir).split('\n'):
log.msg(l)
raise exceptions.DatabaseNotReadyError()
d.addCallback(check_current)
Expand Down

0 comments on commit 4f7cef3

Please sign in to comment.