From b283fb09b710935911b25589bcd96bd904fdc55a Mon Sep 17 00:00:00 2001 From: Nick <0xb000@gmail.com> Date: Mon, 2 Dec 2024 12:59:54 +0200 Subject: [PATCH] Fix error message --- mesonbuild/wrap/wrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 108b858f434a..93b7b4a084d5 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -101,7 +101,7 @@ def expand_wrapdburl(urlstr: str, allow_insecure: bool = False) -> urllib.parse. if not is_trusted_subdomain(url.hostname): raise WrapException(f'{urlstr} is not a whitelisted WrapDB URL') if has_ssl and not allow_insecure and not url.scheme == 'https': - raise WrapException(f'WrapDB did not have expected SSL https url, instead got {urlstr}') + raise WrapException(f'WrapDB did not have expected SSL https url, instead got {urllib.parse.urlunparse(url)}') return url def open_wrapdburl(urlstring: str, allow_insecure: bool = False, have_opt: bool = False) -> 'http.client.HTTPResponse':