Alle 18:58, mercoledì 14 settembre 2005, Hrvoje Niksic ha scritto: > Owen Cliffe <[EMAIL PROTECTED]> writes: > > Is there a good reason why retrieve tree doesn't just return the > > status of the last failed operation on failure? > > The original reason (which I don't claim to be "good") is because Wget > doesn't stop upon on error, it continues. Because of this returning a > non-zero error code felt wrong, because the download has after all > "finished succesffully". The "quota exceeded" case is an exception > consistent with this logic because, when quota is exceeded, Wget > really terminates the entire download. > > But you present a convincing argument otherwise. Maybe Wget should > use different error codes for different cases, like: > > 0 -- all files downloaded successfully (not counting errors in > robots.txt and such) > 1 -- some errors encountered > 2 -- fatal errors encountered (such as the "quota exceeded" case), > download aborted > > What do others think about this?
i think that's a good point. -- Aequam memento rebus in arduis servare mentem... Mauro Tortonesi http://www.tortonesi.com University of Ferrara - Dept. of Eng. http://www.ing.unife.it GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget Deep Space 6 - IPv6 for Linux http://www.deepspace6.net Ferrara Linux User Group http://www.ferrara.linux.it