From 6237767ba5841ce7ef8eaea1b539bac4ffa7d104 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 29 Mar 2016 11:52:14 +0200 Subject: [PATCH] Fixed error message when using locked SD CURA-1187 --- .../RemovableDriveOutputDevice/RemovableDriveOutputDevice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py b/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py index 125e1225f0..27859bd145 100644 --- a/plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py +++ b/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 {0}: {1}").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 {0}: {1}").format(file_name, str(e))) from e def _onProgress(self, job, progress): if hasattr(job, "_message"):