This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new d6a69f6d6 fix(copy): Fix error propagation operation (#7318)
d6a69f6d6 is described below
commit d6a69f6d635ea854f09645b5eab17900787fad5f
Author: dentiny <[email protected]>
AuthorDate: Thu Mar 26 08:18:33 2026 -0700
fix(copy): Fix error propagation operation (#7318)
---
core/core/src/types/operator/operator.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/core/src/types/operator/operator.rs
b/core/core/src/types/operator/operator.rs
index 45028bc11..b0153bda9 100644
--- a/core/core/src/types/operator/operator.rs
+++ b/core/core/src/types/operator/operator.rs
@@ -1173,7 +1173,7 @@ impl Operator {
if !validate_path(&from, EntryMode::FILE) {
return Err(
Error::new(ErrorKind::IsADirectory, "from path is a directory")
- .with_operation("Operator::move_")
+ .with_operation(Operation::Rename)
.with_context("service", self.info().scheme())
.with_context("from", from),
);
@@ -1184,7 +1184,7 @@ impl Operator {
if !validate_path(&to, EntryMode::FILE) {
return Err(
Error::new(ErrorKind::IsADirectory, "to path is a directory")
- .with_operation("Operator::move_")
+ .with_operation(Operation::Rename)
.with_context("service", self.info().scheme())
.with_context("to", to),
);
@@ -1193,7 +1193,7 @@ impl Operator {
if from == to {
return Err(
Error::new(ErrorKind::IsSameFile, "from and to paths are same")
- .with_operation("Operator::move_")
+ .with_operation(Operation::Rename)
.with_context("service", self.info().scheme())
.with_context("from", from)
.with_context("to", to),