svnno****@sourc*****
svnno****@sourc*****
2008年 2月 5日 (火) 20:56:32 JST
Revision: 351 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=351 Author: flyson Date: 2008-02-05 20:56:32 +0900 (Tue, 05 Feb 2008) Log Message: ----------- 404 時にエラーを出すようにした Modified Paths: -------------- trunk/bbs2chreader/chrome/content/bbs2chreader/lib/downloader.js -------------- next part -------------- Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/lib/downloader.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/lib/downloader.js 2008-02-02 15:39:40 UTC (rev 350) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/lib/downloader.js 2008-02-05 11:56:32 UTC (rev 351) @@ -246,6 +246,12 @@ context.onError(context, context.ERROR_BAD_FILE_PATH); } } + if(httpStatus==404){ + if(context._tempFile.clone().exists()){ + context._tempFile.remove(false); + } + context.onError(context, context.ERROR_FAILURE); + } context.onStop(context, httpStatus); }catch(ex){ if(context._tempFile.clone().exists()){