Skip to content

Commit f016852

Browse files
committed
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
1 parent 4196d65 commit f016852

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

trurl.c

+3
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,9 @@ static void get(struct option *o, CURLU *uh)
822822
break;
823823
}
824824
}
825+
else
826+
errorf(o, ERROR_GET, "\"%.*s\" is not a recognized URL component",
827+
(int)vlen, ptr);
825828
}
826829
ptr = end + 1; /* pass the end */
827830
}

0 commit comments

Comments
 (0)