Swallow HTTPError exceptions for HTTP 500 so they aren't logged in breakpad.

It doesn't give me useful information.

TEST=none
BUG=none

Review URL: http://codereview.chromium.org/3493005

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@60209 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gcl.py b/gcl.py
index 0f4712e..44aa0f0 100755
--- a/gcl.py
+++ b/gcl.py
@@ -1308,7 +1308,7 @@
   try:
     GetRepositoryRoot()
   except gclient_utils.Error:
-    print('To use gcl, you need to be in a subversion checkout.')
+    print >> sys.stderr, 'To use gcl, you need to be in a subversion checkout.'
     return 1
 
   # Create the directories where we store information about changelists if it
@@ -1326,8 +1326,17 @@
     # Unknown command, try to pass that to svn
     return CMDpassthru(argv)
   except gclient_utils.Error, e:
-    print('Got an exception')
-    print(str(e))
+    print >> sys.stderr, 'Got an exception'
+    print >> sys.stderr, str(e)
+    return 1
+  except urllib2.HTTPError, e:
+    if e.code != 500:
+      raise
+    print >> sys.stderr, (
+        'AppEngine is misbehaving and returned HTTP %d, again. Keep faith '
+        'and retry or visit go/isgaeup.\n%s') % (e.code, e.reason)
+    return 1
+
 
 if __name__ == "__main__":
   sys.exit(main(sys.argv[1:]))