Branch: Tag:

2001-08-14

2001-08-14 17:29:56 by Johan Schön <js@opera.com>

Added warning if the temp file couldn't be removed

Rev: lib/modules/Search.pmod/Filter.pmod/PDF.pmod:1.6
Rev: lib/modules/Search.pmod/Filter.pmod/Word.pmod:1.5

1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Word.pmod,v 1.4 2001/08/08 15:12:03 noring Exp $ + // $Id: Word.pmod,v 1.5 2001/08/14 17:29:56 js Exp $      inherit Search.Filter.HTML;   
28:    "-x", combine_path(__FILE__, "../wvHtml.xml"),    fn }));    -  rm(fn); +  if(!rm(fn)) +  werror("Search: Failed to remove temporary file: %s\n", fn);       return ::filter(uri, text, "text/html", ([]), "utf-8");   }