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

Unified Diff: chrome/common/extensions/docs/server2/api_schema_graph.py

Issue 2738623003: Extensions: Fix DocServer assert failures. (Closed)
Patch Set: Address review. Created 3 years, 9 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
Index: chrome/common/extensions/docs/server2/api_schema_graph.py
diff --git a/chrome/common/extensions/docs/server2/api_schema_graph.py b/chrome/common/extensions/docs/server2/api_schema_graph.py
index 0c90ba1d9afa4ee238316ac9ed8f6447fd8e65c5..1ec58334bceaa482055ab8625f48b12ca89a9916 100644
--- a/chrome/common/extensions/docs/server2/api_schema_graph.py
+++ b/chrome/common/extensions/docs/server2/api_schema_graph.py
@@ -80,7 +80,8 @@ class APINodeCursor(object):
if self._lookup_path[-1] == 'callback':
# This is an event callback, so lookup_path[-2] is the event
# node name, thus lookup_path[-3] must be 'events'.
- assert self._lookup_path[-3] == 'events'
+ assert self._lookup_path[-3] == 'events' , \
+ 'Invalid lookup path: %s' % (self._lookup_path)
return self._lookup_path[:-1]
# This is a function parameter.
assert self._lookup_path[-2] == 'parameters'
« no previous file with comments | « chrome/common/extensions/docs/server2/api_data_source.py ('k') | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698