# HG changeset patch # User Marcin Kuzminski # Date 2016-10-18 21:22:12 # Node ID b82fa46d4723bfecebd2adbb0eb772bd716f1e34 # Parent 952ec857bf431d69dbdaf46dc30eda0f48afc2d0 vcs: make the not initialiazed exception more meaningfull. diff --git a/rhodecode/lib/vcs/connection.py b/rhodecode/lib/vcs/connection.py --- a/rhodecode/lib/vcs/connection.py +++ b/rhodecode/lib/vcs/connection.py @@ -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