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

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

Issue 10830252: Extensions Docs Server: Uniform handling of file not found errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better error handling/slight template fix to pass integration_test Created 8 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
Index: chrome/common/extensions/docs/server2/api_list_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_list_data_source.py b/chrome/common/extensions/docs/server2/api_list_data_source.py
index 03a6219264e5c99f855a282c00ee7544f24139dd..8d00f6652f85647264d06e885a79cf72b6a886b9 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -62,5 +62,4 @@ class APIListDataSource(object):
try:
return self._cache.GetFromFileListing(self._api_path)[key]
except FileNotFoundError as e:
- logging.error(e)
- return None
+ raise ValueError(str(e) + ': Error listing files for "%s".' % key)
« no previous file with comments | « chrome/common/extensions/docs/server2/api_data_source.py ('k') | chrome/common/extensions/docs/server2/converter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698