Chromium Code Reviews| Index: tools/logreader.js |
| diff --git a/tools/logreader.js b/tools/logreader.js |
| index 315e72127608f01d075d475d9112c7f2ec997fd2..c65f1a92e79ecc5122f59c2b645903cdc6a3ffce 100644 |
| --- a/tools/logreader.js |
| +++ b/tools/logreader.js |
| @@ -134,9 +134,8 @@ LogReader.prototype.skipDispatch = function(dispatch) { |
| LogReader.prototype.dispatchLogRow_ = function(fields) { |
| // Obtain the dispatch. |
| var command = fields[0]; |
| - if (!(command in this.dispatchTable_)) { |
| - throw new Error('unknown command: ' + command); |
| - } |
| + if (!(command in this.dispatchTable_)) return; |
| + |
| var dispatch = this.dispatchTable_[command]; |
| if (dispatch === null || this.skipDispatch(dispatch)) { |
| @@ -172,14 +171,8 @@ LogReader.prototype.dispatchLogRow_ = function(fields) { |
| LogReader.prototype.processLog_ = function(lines) { |
| for (var i = 0, n = lines.length; i < n; ++i, ++this.lineNum_) { |
| var line = lines[i]; |
| - if (!line) { |
| - continue; |
| - } |
| - try { |
| - var fields = this.csvParser_.parseLine(line); |
| - this.dispatchLogRow_(fields); |
| - } catch (e) { |
| - this.printError('line ' + (this.lineNum_ + 1) + ': ' + (e.message || e)); |
|
mnaganov (inactive)
2011/09/15 12:39:29
Why are you removing this code as well? It's gener
|
| - } |
| + if (!line) continue; |
| + var fields = this.csvParser_.parseLine(line); |
| + this.dispatchLogRow_(fields); |
| } |
| }; |