diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-27 17:48:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-27 17:48:22 +0000 |
commit | c03e2a108891487088645e8f72220600974df576 (patch) | |
tree | 64013b7622f592df3eb72285ba7f81bcdf016c6f /extra/svn | |
parent | a26db9f08c237173b14b24ed3acdb960aedf871b (diff) | |
download | redmine-c03e2a108891487088645e8f72220600974df576.tar.gz redmine-c03e2a108891487088645e8f72220600974df576.zip |
Adds an explicit message for when reposman gets a 403.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7958 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra/svn')
-rwxr-xr-x | extra/svn/reposman.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/svn/reposman.rb b/extra/svn/reposman.rb index cb623bfc2..6eb61b297 100755 --- a/extra/svn/reposman.rb +++ b/extra/svn/reposman.rb @@ -207,12 +207,14 @@ Project.site = "#{$redmine_host}/sys"; begin # Get all active projects that have the Repository module enabled projects = Project.find(:all, :params => {:key => $api_key}) +rescue ActiveResource::ForbiddenAccess + log("Request was denied by your Redmine server. Make sure that 'WS for repository management' is enabled in application settings and that you provided the correct API key.") rescue => e log("Unable to connect to #{Project.site}: #{e}", :exit => true) end if projects.nil? - log('no project found, perhaps you forgot to "Enable WS for repository management"', :exit => true) + log('No project found, perhaps you forgot to "Enable WS for repository management"', :exit => true) end log("retrieved #{projects.size} projects", :level => 1) |