Bug 723561 - TelemetryStopwatch follow-up: display key name on error. r=gavin

This commit is contained in:
Felipe Gomes 2012-02-29 22:33:03 -08:00
parent 440b7e4be9
commit c048945abe

View File

@ -49,7 +49,8 @@ let TelemetryStopwatch = {
if (timers.hasOwnProperty(aHistogram)) {
delete timers[aHistogram];
Cu.reportError("TelemetryStopwatch: key was already initialized");
Cu.reportError("TelemetryStopwatch: key \"" +
aHistogram + "\" was already initialized");
return false;
}