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

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

Issue 13896007: Devserver: run the cron over the examples. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again to avoid .svn Created 7 years, 8 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/fake_fetchers.py
diff --git a/chrome/common/extensions/docs/server2/fake_fetchers.py b/chrome/common/extensions/docs/server2/fake_fetchers.py
index a35e1d977832f1f817e046e14d264a4e0bbd22af..e7a13d632e4a32e4a2b449d92c77d77ed9965490 100644
--- a/chrome/common/extensions/docs/server2/fake_fetchers.py
+++ b/chrome/common/extensions/docs/server2/fake_fetchers.py
@@ -56,12 +56,12 @@ class FakeSubversionServer(_FakeFetcher):
html.append('<a>' + f + '</a>')
html.append('</html>')
return '\n'.join(html)
- except OSError:
- raise FileNotFoundError(path)
+ except OSError as e:
+ raise FileNotFoundError('Listing %s failed: %s' (path, e))
try:
return self._ReadFile(path)
- except IOError:
- raise FileNotFoundError(path)
+ except IOError as e:
+ raise FileNotFoundError('Reading %s failed: %s' (path, e))
class FakeViewvcServer(_FakeFetcher):
def __init__(self, base_path):
@@ -86,8 +86,8 @@ class FakeViewvcServer(_FakeFetcher):
return '\n'.join(html)
try:
return self._ReadFile(path)
- except IOError:
- raise FileNotFoundError(path)
+ except IOError as e:
+ raise FileNotFoundError('Reading %s failed: %s' % (path, e))
class FakeGithubStat(_FakeFetcher):
def fetch(self, url):
« no previous file with comments | « chrome/common/extensions/docs/server2/example_zipper_test.py ('k') | chrome/common/extensions/docs/server2/handler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698