You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2018/04/05 11:06:48 UTC

svn commit: r1828417 - /comdev/projects.apache.org/scripts/cronjobs/parseprojects.py

Author: sebb
Date: Thu Apr  5 11:06:48 2018
New Revision: 1828417

URL: http://svn.apache.org/viewvc?rev=1828417&view=rev
Log:
Better error message

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parseprojects.py

Modified: comdev/projects.apache.org/scripts/cronjobs/parseprojects.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parseprojects.py?rev=1828417&r1=1828416&r2=1828417&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parseprojects.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parseprojects.py Thu Apr  5 11:06:48 2018
@@ -251,7 +251,7 @@ for s in itemlist :
         if isinstance(err, OSError): # OSError is parent of HTTPError/URLError
             # Only mail 404 errors individually
             if isinstance(err, urllib.error.HTTPError) and err.code == 404:
-                printMail("Error when processing doap file %s:" % url, file=sys.stderr, body=err.filename)
+                printMail("Cannot find doap file %s:" % url, file=sys.stderr, body=err.filename)
             else:
                 print("Error when processing doap file %s:" % url, file=sys.stderr)
                 unreportedError = True