Skip to content

Commit

Permalink
feat: add -w hint
Browse files Browse the repository at this point in the history
  • Loading branch information
70sh1 committed Oct 15, 2024
1 parent 910a71a commit 74df981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func encryptFiles(paths []string, outputDir, password string, overwrite, noEmoji
pathOut = filepath.Join(outputDir, filepath.Base(pathOut))
}
if _, err := os.Stat(pathOut); !errors.Is(err, os.ErrNotExist) && !overwrite {
ui.BarFail(bar, errors.New("output already exists"), noEmojiAndColor)
ui.BarFail(bar, errors.New("output already exists (use -w to overwrite)"), noEmojiAndColor)
return
}
source, size, err := pathutils.OpenAndGetSize(pathIn)
Expand Down Expand Up @@ -249,7 +249,7 @@ func decryptFiles(paths []string, outputDir, password string, overwrite, force,
pathOut = filepath.Join(outputDir, filepath.Base(pathOut))
}
if _, err := os.Stat(pathOut); !errors.Is(err, os.ErrNotExist) && !overwrite {
ui.BarFail(bar, errors.New("output already exists"), noEmojiAndColor)
ui.BarFail(bar, errors.New("output already exists (use -w to overwrite)"), noEmojiAndColor)
return
}
source, size, err := pathutils.OpenAndGetSize(pathIn)
Expand Down

0 comments on commit 74df981

Please sign in to comment.