Skip to content

Commit

Permalink
"Something went wrong" error message: include the actual value of the…
Browse files Browse the repository at this point in the history
… `redirect_uri`
  • Loading branch information
DilumAluthge authored Aug 5, 2024
1 parent 9841eec commit 3614b2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/provider/ehr_launch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ function provider_ehr_launch_part_two(
"GET", authorize_uri_with_querystring_params; redirect=false
)
headers = Dict(authorize_response.headers)
redirect_uri = config.redirect_uri
let
error_msg = string(
"Something went wrong when authenticating to the EHR. ",
"One possible explanation is that your `redirect_uri` value does not exactly ",
"One possible explanation is that your `redirect_uri` value (`$(redirect_uri)`) does not exactly ",
"match any of the `redirect_uri` values that are on file with the EHR.",
)
haskey(headers, "Location") || throw(ErrorException(error_msg))
Expand Down

0 comments on commit 3614b2e

Please sign in to comment.