Changeset 509
- Timestamp:
- 11/10/08 04:34:27 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release04x02/lib/TWiki/Store/SearchAlgorithms/Forking.pm
r21 r509 101 101 # unless the -q or --quiet or --silent option is used and a selected 102 102 # line is found." 103 throw Error::Simple("$program Grep for '$searchString' returned error") 104 if $exit > 1; 105 $matches .= $m unless $exit; 103 if ($exit > 1) { 104 #TODO: need to work out a way to alert the admin there is a problem, without 105 # filling up the log files with repeated SEARCH's 106 107 # NOTE: we ignore the error, because grep returns an error if it comes across a broken file link 108 # or a file it does not have permission to open, so throwing here gives wrong search results. 109 # throw Error::Simple("$program Grep for '$searchString' returned error") 110 } 111 $matches .= $m; 106 112 @set = splice( @take, 0, $maxTopicsInSet ); 107 113 }
Note: See TracChangeset
for help on using the changeset viewer.
