mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:15:52 +08:00
Do not display backend error messages for a few known error types
ConnectionReset is already handled, as is BindFailed and Debug should never result in an error. Contributes to CURA-813
This commit is contained in:
parent
64aa977696
commit
abe184ebff
@ -26,6 +26,8 @@ import numpy
|
|||||||
|
|
||||||
from PyQt5.QtCore import QTimer
|
from PyQt5.QtCore import QTimer
|
||||||
|
|
||||||
|
import Arcus
|
||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
catalog = i18nCatalog("cura")
|
catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
@ -186,8 +188,11 @@ class CuraEngineBackend(Backend):
|
|||||||
|
|
||||||
def _onSocketError(self, error):
|
def _onSocketError(self, error):
|
||||||
super()._onSocketError(error)
|
super()._onSocketError(error)
|
||||||
|
|
||||||
self._slicing = False
|
self._slicing = False
|
||||||
self.processingProgress.emit(0)
|
self.processingProgress.emit(0)
|
||||||
|
|
||||||
|
if error.getErrorCode() not in [Arcus.ErrorCode.BindFailedError, Arcus.ErrorCode.ConnectionResetError, Arcus.ErrorCode.Debug]:
|
||||||
Logger.log("e", "A socket error caused the connection to be reset")
|
Logger.log("e", "A socket error caused the connection to be reset")
|
||||||
|
|
||||||
def _onActiveProfileChanged(self):
|
def _onActiveProfileChanged(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user