Skip to content

Commit

Permalink
Manage access denied error in vfsUpdateMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheLarchier committed Nov 8, 2024
1 parent efe0b67 commit d81869c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libsyncengine/propagation/executor/executorworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,10 @@ ExitInfo ExecutorWorker::checkLiteSyncInfoForEdit(SyncOpPtr syncOp, const SyncPa
syncOp->affectedNode()->size(),
syncOp->affectedNode()->id().has_value() ? *syncOp->affectedNode()->id() : std::string(), error);
syncOp->setOmit(true); // Do not propagate change in file system, only in DB
// TODO: Vfs functions should return an ExitInfo struct
if (!error.empty()) {
return {ExitCode::SystemError, ExitCause::FileAccessError};
}
break;
}
case PinState::Unspecified:
Expand Down

0 comments on commit d81869c

Please sign in to comment.