Skip to content

Commit

Permalink
wrong error code
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmealey committed Mar 9, 2024
1 parent a86c0d9 commit 373dcbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ int main(int argc, const char **argv)
}

if(is_empty && !o.jsonout)
errorf(&o, ERROR_BADURL, "not enough input for a URL");
errorf(&o, ERROR_URL, "not enough input for a URL");
if(!end_of_file && ferror(o.url))
trurl_warnf(&o, "fgets: %s", strerror(errno));
if(o.urlopen)
Expand Down

0 comments on commit 373dcbb

Please sign in to comment.