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:
1 parent
edc5d977cd
commit
b38693f1c9
1 file changed
+2
-1
@@ -1447,7 +1447,8 @@ func (nav *nav) moveAsync(app *app, srcs []string, dstDir string) {
|
|||||||
if errCrossDevice(err) {
|
if errCrossDevice(err) {
|
||||||
total, err := copySize([]string{src})
|
total, err := copySize([]string{src})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
echo.args[0] = err.Error()
|
errCount++
|
||||||
|
echo.args[0] = fmt.Sprintf("[%d] %s", errCount, err)
|
||||||
app.ui.exprChan <- echo
|
app.ui.exprChan <- echo
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user