vcs: make the not initialiazed exception more meaningfull.
This commit is contained in:
parent
41a29fc6f4
commit
62341a791b
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue