From 3614b2e57a3f351708fcef60899cf5dfcc305fff Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Mon, 5 Aug 2024 01:11:53 -0400 Subject: [PATCH] "Something went wrong" error message: include the actual value of the `redirect_uri` --- src/provider/ehr_launch.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/provider/ehr_launch.jl b/src/provider/ehr_launch.jl index 774408a..7b101ca 100644 --- a/src/provider/ehr_launch.jl +++ b/src/provider/ehr_launch.jl @@ -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))