[csw-devel] SF.net SVN: gar:[11216] csw/mgar/gar/v2/lib/python/opencsw.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Oct 10 22:34:27 CEST 2010


Revision: 11216
          http://gar.svn.sourceforge.net/gar/?rev=11216&view=rev
Author:   wahwah
Date:     2010-10-10 20:34:27 +0000 (Sun, 10 Oct 2010)

Log Message:
-----------
mGAR v2: A better error message when file has a wrong filename.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/opencsw.py

Modified: csw/mgar/gar/v2/lib/python/opencsw.py
===================================================================
--- csw/mgar/gar/v2/lib/python/opencsw.py	2010-10-10 20:34:01 UTC (rev 11215)
+++ csw/mgar/gar/v2/lib/python/opencsw.py	2010-10-10 20:34:27 UTC (rev 11216)
@@ -488,7 +488,8 @@
         self.gunzipped_path = self.pkg_path
       else:
         raise Error("The file name should end in either "
-                    "%s or %s." % (gzip_suffix, pkg_suffix))
+                    "%s or %s, but it's %s."
+                    % (gzip_suffix, pkg_suffix, repr(self.pkg_path)))
     return self.gunzipped_path
 
   def Pkgtrans(self, src_file, destdir, pkgname):


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list