Skip to content

Commit 36d113b

Browse files
blacknonCopilot
andauthored
Update internal/scp/main.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent abcafa1 commit 36d113b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/scp/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ func (cp *Scp) push() {
126126
for _, p := range cp.From.Path {
127127
info, err := os.Lstat(p)
128128
if err != nil {
129-
continue
129+
fmt.Fprintf(os.Stderr, "scp: failed to stat source path %q: %v\n", p, err)
130+
return
130131
}
131132

132133
data, err := common.WalkDir(p)

0 commit comments

Comments
 (0)