From f01685227aec1af594c29af54552bd4f106e87bd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 18 Apr 2024 14:52:54 +0200 Subject: [PATCH] error when using an unrecognized URL component To help user detect typos and error out hard rather than to just not do what the user expected. Ref: #236 --- trurl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trurl.c b/trurl.c index 907c57da..d60a4891 100644 --- a/trurl.c +++ b/trurl.c @@ -822,6 +822,9 @@ static void get(struct option *o, CURLU *uh) break; } } + else + errorf(o, ERROR_GET, "\"%.*s\" is not a recognized URL component", + (int)vlen, ptr); } ptr = end + 1; /* pass the end */ }