diff options
Diffstat (limited to 'V8Binding/v8/tools/logreader.js')
-rw-r--r-- | V8Binding/v8/tools/logreader.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/V8Binding/v8/tools/logreader.js b/V8Binding/v8/tools/logreader.js index 78085a4..88ab907 100644 --- a/V8Binding/v8/tools/logreader.js +++ b/V8Binding/v8/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; + } } }; |