Skip to content

Commit

Permalink
Remove ExitCause::MoveToTrashFailed
Browse files Browse the repository at this point in the history
  • Loading branch information
herve-er committed Nov 13, 2024
1 parent d46ead2 commit 072c49c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions src/gui/parametersdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -826,10 +826,6 @@ QString ParametersDialog::getErrorLevelNodeText(const ErrorInfo &errorInfo) cons
"Can't access item.<br>"
"Please fix the read and write permissions.");
}

if (errorInfo.exitCause() == ExitCause::MoveToTrashFailed) {
return tr("Move to trash failed.");
}
return tr("System error.");
}
case ExitCode::BackError: {
Expand Down
2 changes: 0 additions & 2 deletions src/libcommon/utility/types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ std::string toString(const ExitCause e) {
return "NotEnoughtMemory";
case ExitCause::FileTooBig:
return "FileTooBig";
case ExitCause::MoveToTrashFailed:
return "MoveToTrashFailed";
case ExitCause::InvalidName:
return "InvalidName";
case ExitCause::LiteSyncNotAllowed:
Expand Down
1 change: 0 additions & 1 deletion src/libcommon/utility/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ enum class ExitCause {
UnableToCreateVfs,
NotEnoughtMemory,
FileTooBig,
MoveToTrashFailed,
InvalidName,
LiteSyncNotAllowed,
NetworkTimeout,
Expand Down
3 changes: 1 addition & 2 deletions src/libsyncengine/propagation/executor/executorworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2503,8 +2503,7 @@ ExitInfo ExecutorWorker::handleExecutorError(SyncOpPtr syncOp, ExitInfo opsExitI

// Handle specific errors
switch (static_cast<int>(opsExitInfo)) {
case static_cast<int>(ExitInfo(ExitCode::SystemError, ExitCause::FileAccessError)):
case static_cast<int>(ExitInfo(ExitCode::SystemError, ExitCause::MoveToTrashFailed)): {
case static_cast<int>(ExitInfo(ExitCode::SystemError, ExitCause::FileAccessError)): {
return handleOpsFileAccessError(syncOp, opsExitInfo);
}
case static_cast<int>(ExitInfo(ExitCode::BackError, ExitCause::FileAlreadyExist)):
Expand Down

0 comments on commit 072c49c

Please sign in to comment.