Skip to content

Commit

Permalink
Add code to capture token required error
Browse files Browse the repository at this point in the history
  • Loading branch information
jbasdf committed May 1, 2017
1 parent fb48dbe commit 3a3cc6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/controllers/lti_launches_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ class LtiLaunchesController < ApplicationController
before_action :do_lti

def index
@canvas_api = canvas_api
@canvas_auth_required = @canvas_api.blank?
begin
@canvas_api = canvas_api
@canvas_auth_required = @canvas_api.blank?
rescue CanvasApiTokenRequired
@canvas_auth_required = true
end
set_lti_launch_values
@lti_launch = ClientSetting.find(params[:id]) if params[:id].present?
end
Expand Down

0 comments on commit 3a3cc6e

Please sign in to comment.