Skip to content

Commit

Permalink
[webui] BsRequest::ModifyError is not an Activexml Error
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Nov 20, 2012
1 parent 5b207b4 commit 88e1fa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/api/script/start_test_backend
Expand Up @@ -298,6 +298,8 @@ FileUtils.cp("#{Rails.root}/test/fixtures/backend/source/_pubkey", "#{Rails.root
@http_user = nil
User.current = nil

scheduler_thread = nil

at_exit do
puts "kill #{srcsrv_out.pid}"
Process.kill "TERM", -srcsrv_out.pid
Expand All @@ -308,7 +310,7 @@ at_exit do
puts "kill #{publishsrv_out.pid}"
Process.kill "TERM", -publishsrv_out.pid

scheduler_thread.join
scheduler_thread.join if scheduler_thread
srcsrv_out.close
srcsrv_out = nil
srcsrv.join
Expand Down
2 changes: 1 addition & 1 deletion src/webui/app/controllers/request_controller.rb
Expand Up @@ -47,7 +47,7 @@ def modify_review
begin
BsRequest.modifyReview(opts[:id], opts[:new_review_state], opts)
rescue BsRequest::ModifyError => e
flash[:error] = e.summary
flash[:error] = e.message
end
redirect_to :action => 'show', :id => opts[:id]
end
Expand Down

0 comments on commit 88e1fa2

Please sign in to comment.