[PATCH cubicweb] [ux] display instance name in suggested upgrade command

Laurent Peuch cortex at worlddomination.be
Fri Oct 18 05:12:35 CEST 2019


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1561509122 -7200
#      Wed Jun 26 02:32:02 2019 +0200
# Node ID ed7ba90ac49b0f6380cf0ab894bea1745c9379c1
# Parent  5c432a7fc442e170c9005666131b01a88a5c9334
# Available At https://hg.logilab.org/users/lpeuch/cubicweb
#              hg pull https://hg.logilab.org/users/lpeuch/cubicweb -r ed7ba90ac49b
[ux] display instance name in suggested upgrade command

diff --git a/cubicweb/server/repository.py b/cubicweb/server/repository.py
--- a/cubicweb/server/repository.py
+++ b/cubicweb/server/repository.py
@@ -557,8 +557,8 @@ class Repository(object):
                         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



More information about the cubicweb-devel mailing list