You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2012/03/05 01:04:24 UTC

svn commit: r1296909 - /subversion/trunk/tools/dev/which-error.py

Author: stsp
Date: Mon Mar  5 00:04:24 2012
New Revision: 1296909

URL: http://svn.apache.org/viewvc?rev=1296909&view=rev
Log:
* tools/dev/which-error.py (print_error): http://xkcd.com/1024

Modified:
    subversion/trunk/tools/dev/which-error.py

Modified: subversion/trunk/tools/dev/which-error.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/which-error.py?rev=1296909&r1=1296908&r2=1296909&view=diff
==============================================================================
--- subversion/trunk/tools/dev/which-error.py (original)
+++ subversion/trunk/tools/dev/which-error.py Mon Mar  5 00:04:24 2012
@@ -81,7 +81,10 @@ def print_error(code):
   try:
     print('%08d  %s' % (code, __svn_error_codes[code]))
   except KeyError:
-    print('%08d  *** UNKNOWN ERROR CODE ***' % (code))
+    if code == -41:
+      print("Sit by a lake.")
+    else:
+      print('%08d  *** UNKNOWN ERROR CODE ***' % (code))
 
 if __name__ == "__main__":
   global __svn_error_codes