[ux] display instance name in suggested upgrade command 3.26
authorLaurent Peuch <cortex@worlddomination.be>
Wed, 26 Jun 2019 02:32:02 +0200
branch3.26
changeset 12747 36d4a8ec1fb7
parent 12728 6bcd8899f71b
child 12748 9fa65579520f
[ux] display instance name in suggested upgrade command
cubicweb/server/repository.py
--- a/cubicweb/server/repository.py	Thu Jun 20 16:18:19 2019 +0200
+++ b/cubicweb/server/repository.py	Wed Jun 26 02:32:02 2019 +0200
@@ -600,8 +600,8 @@
                         fsversion = self.config.cubicweb_version()
                     if version < fsversion:
                         msg = ('instance has %s version %s but %s '
-                               'is installed. Run "cubicweb-ctl upgrade".')
-                        raise ExecutionError(msg % (cube, version, fsversion))
+                               'is installed. Run "cubicweb-ctl upgrade %s".')
+                        raise ExecutionError(msg % (cube, version, fsversion, self.config.appid))
         return vcconf
 
     @cached