adding case for error message being emmited
This commit is contained in:
parent
53e9df5455
commit
0aae89aa03
1 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ class RequestsController < ApplicationController
|
||||||
@request = Request.new
|
@request = Request.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
aspect = current_user.aspect_by_id(params[:request][:aspect_id])
|
aspect = current_user.aspect_by_id(params[:request][:aspect_id])
|
||||||
account = params[:request][:destination_url].strip
|
account = params[:request][:destination_url].strip
|
||||||
begin
|
begin
|
||||||
|
|
@ -52,7 +52,7 @@ class RequestsController < ApplicationController
|
||||||
flash[:error] = e.message
|
flash[:error] = e.message
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Rails.logger.info "#{person}"
|
#socket to tell people this failed?
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
|
|
@ -67,5 +67,5 @@ class RequestsController < ApplicationController
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue