CVS: tmda-cgi Install.py,1.27,1.28
Jim Ramsay <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv24141
Modified Files:
Install.py
Log Message:
This error case used to cause an error - Now it is properly caught
Index: Install.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Install.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- Install.py 23 Aug 2003 16:03:25 -0000 1.27
+++ Install.py 9 Dec 2003 18:51:01 -0000 1.28
@@ -111,8 +111,8 @@
"-czf", Archive] + Files
try:
Util.RunTask(TarCmd)
- except OSError:
- CgiUtil.TermError("CreateTgz failed.", "Errcode: %d" % RetVal,
+ except OSError, ( eno, estr ):
+ CgiUtil.TermError("CreateTgz failed.", "Error: %s (%d)" % (estr, eno),
"create backup", " ".join(TarCmd),
"Check file permissions in home directory.")
for (DstFn, SrcFn) in Parents: