Browse Source

Fixed error message when using locked SD

CURA-1187
Jaime van Kessel 9 years ago
parent
commit
6237767ba5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py

+ 2 - 2
plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py

@@ -72,10 +72,10 @@ class RemovableDriveOutputDevice(OutputDevice):
             job.start()
         except PermissionError as e:
             Logger.log("e", "Permission denied when trying to write to %s: %s", file_name, str(e))
-            raise OutputDeviceError.PermissionDeniedError() from e
+            raise OutputDeviceError.PermissionDeniedError(catalog.i18nc("@info:status", "Could not save to <filename>{0}</filename>: <message>{1}</message>").format(file_name, str(e))) from e
         except OSError as e:
             Logger.log("e", "Operating system would not let us write to %s: %s", file_name, str(e))
-            raise OutputDeviceError.WriteRequestFailedError() from e
+            raise OutputDeviceError.WriteRequestFailedError(catalog.i18nc("@info:status", "Could not save to <filename>{0}</filename>: <message>{1}</message>").format(file_name, str(e))) from e
 
     def _onProgress(self, job, progress):
         if hasattr(job, "_message"):