From 62341a791bd07ec7fcf4cb675472f93fd837ba8d Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 18 Oct 2016 23:22:12 +0200 Subject: [PATCH] vcs: make the not initialiazed exception more meaningfull. --- rhodecode/lib/vcs/connection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rhodecode/lib/vcs/connection.py b/rhodecode/lib/vcs/connection.py index 86b378c0..e941ff87 100644 --- 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