Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: tracing/tracing/base/unit.html

Issue 2996873002: Improve error message in tr.b.Unit.fromJSON (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/unit.html
diff --git a/tracing/tracing/base/unit.html b/tracing/tracing/base/unit.html
index 884ebc2f75860b64f694b968caea3e150a15fd67..f8b1a49a8036e6c9cb1f7d0d364465ff027fc33c 100644
--- a/tracing/tracing/base/unit.html
+++ b/tracing/tracing/base/unit.html
@@ -234,7 +234,7 @@ tr.exportTo('tr.b', function() {
if (u) {
return u;
}
- throw new Error('Unrecognized unit');
+ throw new Error(`Unrecognized unit "${object}"`);
};
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698