Fix missing errcount when moving cross devices fails (#2085)

* Fix missing errcount when moving cross devices fails

* Included count in error message
This commit is contained in:
Joe Lim authored and GitHub committed 2025-08-08 11:46:07 +10:00
1 parent edc5d977cd
commit b38693f1c9
1 file changed
+2 -1
+2 -1
View File
@@ -1447,7 +1447,8 @@ func (nav *nav) moveAsync(app *app, srcs []string, dstDir string) {
if errCrossDevice(err) {
total, err := copySize([]string{src})
if err != nil {
echo.args[0] = err.Error()
errCount++
echo.args[0] = fmt.Sprintf("[%d] %s", errCount, err)
app.ui.exprChan <- echo
continue
}