chore: raise a specific error

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Shivam Mishra
2025-06-09 16:02:45 +05:30
committed by GitHub
co-authored by Copilot
parent 43e55491a3
commit 2584d6dcba
+1 -1
View File
@@ -82,7 +82,7 @@ class OauthCallbackController < ApplicationController
end
def account_from_signed_id
raise 'Missing state variable' if params[:state].blank?
raise ActionController::BadRequest, 'Missing state variable' if params[:state].blank?
GlobalID::Locator.locate_signed(params[:state])
end