Skip to content

Commit 9f11dfe

Browse files
author
Vo Minh Thu
committed
[IMP] startup script: added little reminder when the web module can not be imported.
bzr revid: [email protected]
1 parent 28b0dae commit 9f11dfe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

openerp-server

+6-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,12 @@ if __name__ == "__main__":
247247
if info['post_load']:
248248
getattr(sys.modules[m], info['post_load'])()
249249
except Exception:
250-
logging.exception('Failed to load server-wide module `%s`', m)
250+
msg = ''
251+
if m == 'web':
252+
msg = """
253+
The `web` module is provided by the addons found in the `openerp-web` project.
254+
Maybe you forgot to add those addons in your addons_path configuration."""
255+
logging.exception('Failed to load server-wide module `%s`.%s', m, msg)
251256

252257
setup_pid_file()
253258
logger = logging.getLogger('server')

0 commit comments

Comments
 (0)