Skip to content

Commit

Permalink
error when using an unrecognized URL component
Browse files Browse the repository at this point in the history
To help user detect typos and error out hard rather than to just not do
what the user expected.

Ref: #236
  • Loading branch information
bagder committed Apr 18, 2024
1 parent 4196d65 commit f016852
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down

0 comments on commit f016852

Please sign in to comment.