Index: Source/devtools/front_end/sdk/TempFile.js |
diff --git a/Source/devtools/front_end/sdk/TempFile.js b/Source/devtools/front_end/sdk/TempFile.js |
index 2e8740828aa304237840d58ae72bb25e3611853e..45571288c33c19fc5fa55ee67b45ca7fb26c7c81 100644 |
--- a/Source/devtools/front_end/sdk/TempFile.js |
+++ b/Source/devtools/front_end/sdk/TempFile.js |
@@ -88,7 +88,7 @@ WebInspector.TempFile = function(dirPath, name, callback) |
function onTruncateError(e) |
{ |
- WebInspector.console.addErrorMessage("Failed to truncate temp file " + e.code + " : " + e.message); |
+ WebInspector.console.error("Failed to truncate temp file " + e.code + " : " + e.message); |
callback(null); |
} |
@@ -104,7 +104,7 @@ WebInspector.TempFile = function(dirPath, name, callback) |
function errorHandler(e) |
{ |
- WebInspector.console.addErrorMessage("Failed to create temp file " + e.code + " : " + e.message); |
+ WebInspector.console.error("Failed to create temp file " + e.code + " : " + e.message); |
callback(null); |
} |
@@ -128,7 +128,7 @@ WebInspector.TempFile.prototype = { |
var blob = new Blob([data], {type: 'text/plain'}); |
this._writer.onerror = function(e) |
{ |
- WebInspector.console.addErrorMessage("Failed to write into a temp file: " + e.message); |
+ WebInspector.console.error("Failed to write into a temp file: " + e.message); |
callback(false); |
} |
this._writer.onwrite = function(e) |
@@ -164,13 +164,13 @@ WebInspector.TempFile.prototype = { |
} |
reader.onerror = function(error) |
{ |
- WebInspector.console.addErrorMessage("Failed to read from temp file: " + error.message); |
+ WebInspector.console.error("Failed to read from temp file: " + error.message); |
} |
reader.readAsText(file); |
} |
function didFailToGetFile(error) |
{ |
- WebInspector.console.addErrorMessage("Failed to load temp file: " + error.message); |
+ WebInspector.console.error("Failed to load temp file: " + error.message); |
callback(null); |
} |
this._fileEntry.file(didGetFile, didFailToGetFile); |
@@ -193,7 +193,7 @@ WebInspector.TempFile.prototype = { |
function didFailToGetFile(error) |
{ |
- WebInspector.console.addErrorMessage("Failed to load temp file: " + error.message); |
+ WebInspector.console.error("Failed to load temp file: " + error.message); |
outputStream.close(); |
} |
@@ -328,14 +328,14 @@ WebInspector.TempStorageCleaner.prototype = { |
{ |
if (event.data.type === "tempStorageCleared") { |
if (event.data.error) |
- WebInspector.console.addErrorMessage(event.data.error); |
+ WebInspector.console.error(event.data.error); |
this._notifyCallbacks(); |
} |
}, |
_handleError: function(event) |
{ |
- WebInspector.console.addErrorMessage(WebInspector.UIString("Failed to clear temp storage: %s", event.data)); |
+ WebInspector.console.error(WebInspector.UIString("Failed to clear temp storage: %s", event.data)); |
this._notifyCallbacks(); |
}, |