ref: c2dacd29756de342a20be49414e0fdbce3af9a9d
parent: fde607e0baa42408694197787654ebcd4b69d6f4
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun May 17 15:44:03 EDT 2020
put url in request() error
--- a/main.c
+++ b/main.c
@@ -158,6 +158,8 @@
return r;
err:
+ if(r != nil && r->url != nil)
+ werrstr("%q: %r", r->url->url);
freeresponse(r);
return nil;
}
@@ -235,7 +237,7 @@
}
freeresponse(r);
}else{
- fprint(2, "%s: %r\n", argv[1]);
+ fprint(2, "%r\n");
if(!wait)
exits("failed");
}