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

Unified Diff: web/inc/rpc/rpc-error.html

Issue 2543323004: Rewrite LogDog log viewer app. (Closed)
Patch Set: Control all fetch sizes, fix follow on initial click, fix small fetch when auth is retrid. Created 4 years 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
Index: web/inc/rpc/rpc-error.html
diff --git a/web/inc/rpc/rpc-error.html b/web/inc/rpc/rpc-error.html
index e96d93875165c3c679fe9c0efd9a2faeb5a0e23e..8a529af734f52e52817f024ebd087de912e5ca83 100644
--- a/web/inc/rpc/rpc-error.html
+++ b/web/inc/rpc/rpc-error.html
@@ -23,6 +23,18 @@
GrpcError.prototype = Error();
rpc.GrpcError = GrpcError;
+ function HttpError(code, description) {
+ if (code == null) {
+ throw Error('code is not set')
+ }
+ this.name = 'HttpError';
+ this.code = code;
+ this.description = description;
+ this.message = 'code = ' + code + ' desc = ' + description;
+ }
+ HttpError.prototype = Error();
+ rpc.HttpError = HttpError;
+
return luci;
}(luci || {}));
</script>

Powered by Google App Engine
This is Rietveld 408576698