Show explicit error message when the scm command failed (eg. when svn binary is not available).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1094 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-01-23 17:25:11 +00:00
parent 97e7432ce6
commit 91dc13f4b2
26 changed files with 90 additions and 27 deletions
+5
View File
@@ -137,6 +137,11 @@ class ApplicationController < ActionController::Base
return false
end
def render_error(msg)
flash.now[:error] = msg
render :nothing => true, :layout => !request.xhr?, :status => 500
end
def render_feed(items, options={})
@items = items || []
@items.sort! {|x,y| y.event_datetime <=> x.event_datetime }