[IMP] startup script: added little reminder when the `web` module can not be imported.
authorVo Minh Thu <vmt@openerp.com>
Fri, 7 Oct 2011 07:33:30 +0000 (09:33 +0200)
committerVo Minh Thu <vmt@openerp.com>
Fri, 7 Oct 2011 07:33:30 +0000 (09:33 +0200)
bzr revid: vmt@openerp.com-20111007073330-t0mh6x7ohv82i1g6

openerp-server

index 52ad491..18f45a6 100755 (executable)
@@ -247,7 +247,12 @@ if __name__ == "__main__":
             if info['post_load']:
                 getattr(sys.modules[m], info['post_load'])()
         except Exception:
-            logging.exception('Failed to load server-wide module `%s`', m)
+            msg = ''
+            if m == 'web':
+                msg = """
+The `web` module is provided by the addons found in the `openerp-web` project.
+Maybe you forgot to add those addons in your addons_path configuration."""
+            logging.exception('Failed to load server-wide module `%s`.%s', m, msg)
 
     setup_pid_file()
     logger = logging.getLogger('server')