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

Unified Diff: web/inc/logdog-stream/logdog-error.html

Issue 2570963003: Revert of Rewrite LogDog log viewer app. (Closed)
Patch Set: 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
« no previous file with comments | « web/inc/logdog-stream/logdog.ts ('k') | web/inc/luci-sleep-promise/luci-sleep-promise.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web/inc/logdog-stream/logdog-error.html
diff --git a/web/inc/logdog-stream/logdog-error.html b/web/inc/logdog-stream/logdog-error.html
index af62c881639e19ae7029cf0a7fbd047025793fc9..111ed0f920301de75350d5bdd69635f2d62274e5 100644
--- a/web/inc/logdog-stream/logdog-error.html
+++ b/web/inc/logdog-stream/logdog-error.html
@@ -24,24 +24,9 @@
return (this.base.name === "GrpcError");
};
LogDogError.prototype.isNotFound = function() {
- return (this.isGrpcError() && this.base.code === luci.rpc.Code.NOT_FOUND);
+ return (this.isGrpcError() && this.base.code === 5);
};
LogDogError.prototype.isUnauthenticated = function() {
- return (this.isGrpcError() &&
- this.base.code === luci.rpc.Code.UNAUTHENTICATED);
- };
- LogDogError.prototype.isTransient = function() {
- if ( ! this.isGrpcError() ) {
- return false;
- }
- switch ( this.base.code ) {
- case luci.rpc.Code.INTERNAL:
- case luci.rpc.Code.UNAVAILABLE:
- case luci.rpc.Code.RESOURCE_EXHAUSTED:
- return true;
-
- default:
- return false;
- }
+ return (this.isGrpcError() && this.base.code === 16);
};
</script>
« no previous file with comments | « web/inc/logdog-stream/logdog.ts ('k') | web/inc/luci-sleep-promise/luci-sleep-promise.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698