aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-08-03 10:36:06 -0500
committerRob Landley <rob@landley.net>2018-08-03 10:36:06 -0500
commit5e940c3806f5a1d5191ef35cc5bf2420b59d3059 (patch)
treedc3f00ab73f83f72d6a2b9a732690d123def66fe /toys/pending
parent917892ea7d676c0937f1921bb126b200b2dea329 (diff)
downloadtoybox-5e940c3806f5a1d5191ef35cc5bf2420b59d3059.tar.gz
Fix error message pointed out by Reverend Homer.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/wget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/wget.c b/toys/pending/wget.c
index 4283fe40..bb7f9abd 100644
--- a/toys/pending/wget.c
+++ b/toys/pending/wget.c
@@ -135,7 +135,7 @@ void wget_main(void)
// TODO extract filename to be saved from URL
if (!(toys.optflags & FLAG_f)) help_exit("no filename");
- if (fopen(TT.filename, "r")) perror_exit("file already exists");
+ if (fopen(TT.filename, "r")) perror_exit("'%s' already exists", TT.filename);
if(!toys.optargs[0]) help_exit("no URL");
get_info(toys.optargs[0], hostname, port, path);