vcs: make the not initialiazed exception more meaningfull.

This commit is contained in:
Marcin Kuzminski 2016-10-18 23:22:12 +02:00
parent 41a29fc6f4
commit 62341a791b

View file

@ -25,7 +25,9 @@ Holds connection for remote server.
def _not_initialized(*args, **kwargs):
"""Placeholder for objects which have to be initialized first."""
raise Exception("rhodecode.lib.vcs is not yet initialized")
raise Exception(
"rhodecode.lib.vcs is not yet initialized. "
"Make sure `vcs.server` is enabled in your configuration.")
# TODO: figure out a nice default value for these things
Git = _not_initialized