OSDN Git Service

If creation of a portable copy fails, include the exception string in the message...
authorMichael Curran <mick@kulgan.net>
Tue, 3 Apr 2012 08:03:19 +0000 (18:03 +1000)
committerMichael Curran <mick@kulgan.net>
Tue, 3 Apr 2012 08:03:19 +0000 (18:03 +1000)
source/gui/installerGui.py

index 247ec2d..14732e9 100644 (file)
@@ -135,10 +135,10 @@ def doCreatePortable(portableDirectory,createAutorun=False,copyUserConfig=False)
        d = IndeterminateProgressDialog(gui.mainFrame, _("Creating Portable Copy"), _("Please wait while a portable copy of NVDA is created."))\r
        try:\r
                installer.CreatePortableCopy(portableDirectory,copyUserConfig=copyUserConfig,createAutorun=createAutorun)\r
-       except:\r
+       except Exception as e:\r
                log.error("Failed to create portable copy",exc_info=True)\r
                d.done()\r
-               gui.messageBox(_("Failed to create portable copy"),_("Error"))\r
+               gui.messageBox(_("Failed to create portable copy: %s")%e,_("Error"))\r
                return\r
        d.done()\r
        gui.messageBox(_("Successfully created a portable copy of NVDA at %s")%portableDirectory,_("Success"))\r