mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Log errors in case the file writing fails
An error message is written to the log including the file that was not written to and the stringified exception.
This commit is contained in:
parent
840bf5d504
commit
1db430c61a
1 changed files with 2 additions and 0 deletions
|
@ -63,8 +63,10 @@ class RemovableDriveOutputDevice(OutputDevice):
|
|||
self._writing = True
|
||||
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
|
||||
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
|
||||
|
||||
def _onProgress(self, job, progress):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue