| Index: tools/logreader.js
|
| diff --git a/tools/logreader.js b/tools/logreader.js
|
| index 78085a451eb62e75de72d9c1c7b1724822b9efbd..88ab907740d5dc3807431bc53aa50865208bb1db 100644
|
| --- a/tools/logreader.js
|
| +++ b/tools/logreader.js
|
| @@ -294,8 +294,11 @@ devtools.profiler.LogReader.prototype.processLog_ = function(lines) {
|
| this.dispatchLogRow_(fields);
|
| }
|
| } catch (e) {
|
| - this.printError('line ' + (i + 1) + ': ' + (e.message || e));
|
| - throw e;
|
| + // An error on the last line is acceptable since log file can be truncated.
|
| + if (i < n - 1) {
|
| + this.printError('line ' + (i + 1) + ': ' + (e.message || e));
|
| + throw e;
|
| + }
|
| }
|
| };
|
|
|
|
|