From 5e940c3806f5a1d5191ef35cc5bf2420b59d3059 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 3 Aug 2018 10:36:06 -0500 Subject: Fix error message pointed out by Reverend Homer. --- toys/pending/wget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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); -- cgit v1.2.3