mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add message content for WriteRequestFailedErrors
The content of the exception is directly put inside a message, so we should give the exception a message.
This commit is contained in:
parent
0e1b9d8c5d
commit
e092b908a0
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ class RemovableDriveOutputDevice(OutputDevice):
|
|||
|
||||
if len(file_formats) == 0:
|
||||
Logger.log("e", "There are no file formats available to write with!")
|
||||
raise OutputDeviceError.WriteRequestFailedError()
|
||||
raise OutputDeviceError.WriteRequestFailedError(catalog.i18nc("There are no file formats available to write with!"))
|
||||
|
||||
# Just take the first file format available.
|
||||
if file_handler is not None:
|
||||
|
@ -115,7 +115,7 @@ class RemovableDriveOutputDevice(OutputDevice):
|
|||
name = child.getName()
|
||||
if name:
|
||||
return name
|
||||
raise OutputDeviceError.WriteRequestFailedError("Could not find a file name when trying to write to {device}.".format(device = self.getName()))
|
||||
raise OutputDeviceError.WriteRequestFailedError(catalog.i18nc("@info:status Don't translate the tag {device}!", "Could not find a file name when trying to write to {device}.").format(device = self.getName()))
|
||||
|
||||
def _onProgress(self, job, progress):
|
||||
self.writeProgress.emit(self, progress)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue