From 4b6c9d20f7274e20aca8301734b7da31310d9628 Mon Sep 17 00:00:00 2001
From: Rob Landley <rob@landley.net>
Date: Fri, 3 Aug 2018 16:24:25 -0500
Subject: Typo.

---
 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 bb7f9abd..ced51d9c 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("'%s' already exists", TT.filename);
+  if (fopen(TT.filename, "r")) error_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