Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 967504 - handling timeout
  • Loading branch information
fabianofranz committed Jun 19, 2013
1 parent 94c624e commit e684e4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions console/app/controllers/applications_controller.rb
Expand Up @@ -150,14 +150,13 @@ def create
end
@application.domain = @domain

saved = false
begin
saved = @application.save
@application.save
rescue ActiveResource::TimeoutError
flash.now[:error] = "The application creation timed out. Your app is probably still being created in background. Please give it a couple minutes and check the 'My Applications' section."
end

if saved
if @application.persisted?
messages = @application.remote_results

redirect_to get_started_application_path(@application, :wizard => true), :flash => {:info_pre => messages}
Expand Down

0 comments on commit e684e4a

Please sign in to comment.