Skip to content

Commit 38f9467

Browse files
committed
Add src string to copyDirectory error message.
Proposal to display the wrongful `src` path in the error message. For example, this error can popup in the Microk8s Kubernetes deployment dashboard. A notion of which src path is referred to would be helpful. Signed-off-by: Wilbert van de Ridder <[email protected]>
1 parent aaeac12 commit 38f9467

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func copyDirectory(dst, src string, inodes map[uint64]string, o *copyDirOpts) er
8080
return errors.Wrapf(err, "failed to stat %s", src)
8181
}
8282
if !stat.IsDir() {
83-
return errors.Errorf("source is not directory")
83+
return errors.Errorf("source %s is not directory", src)
8484
}
8585

8686
if st, err := os.Stat(dst); err != nil {

0 commit comments

Comments
 (0)