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

Unified Diff: chrome/common/extensions/docs/server2/subversion_file_system.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/subversion_file_system.py
diff --git a/chrome/common/extensions/docs/server2/subversion_file_system.py b/chrome/common/extensions/docs/server2/subversion_file_system.py
index fc0a433255801954e1be8955683106bdf95d25be..66770fe64da7d819ec88226e3d1fdd630b314702 100644
--- a/chrome/common/extensions/docs/server2/subversion_file_system.py
+++ b/chrome/common/extensions/docs/server2/subversion_file_system.py
@@ -36,7 +36,7 @@ class _AsyncFetchFuture(object):
for path, future in self._fetches:
result = future.Get()
if result.status_code == 404:
- raise FileNotFoundError(path)
+ raise FileNotFoundError('Got 404 when fetching %s for Get' % path)
elif path.endswith('/'):
self._value[path] = self._ListDir(result.content)
elif not self._binary:
@@ -125,12 +125,13 @@ class SubversionFileSystem(FileSystem):
directory = path.rsplit('/', 1)[0]
result = self._stat_fetcher.Fetch(directory + '/')
if result.status_code == 404:
- raise FileNotFoundError(path)
+ raise FileNotFoundError(
+ 'Got 404 when fetching %s from %s for Stat' % (path, directory))
stat_info = self._CreateStatInfo(result.content)
if not path.endswith('/'):
filename = path.rsplit('/', 1)[-1]
if filename not in stat_info.child_versions:
- raise FileNotFoundError(path)
+ raise FileNotFoundError('%s was not in child versions' % filename)
stat_info.version = stat_info.child_versions[filename]
return stat_info

Powered by Google App Engine
This is Rietveld 408576698