Merge pull request #30803 from mattfarina/fix-errors-windows

Fixing windows build
pull/30800/head
Robert Sirchia 5 months ago committed by GitHub
commit 4161d77aba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -34,7 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package fs package fs
import ( import (
"errors" "fmt"
"os" "os"
"syscall" "syscall"
) )
@ -60,7 +60,7 @@ func renameFallback(err error, src, dst string) error {
// 0x11 (ERROR_NOT_SAME_DEVICE) is the windows error. // 0x11 (ERROR_NOT_SAME_DEVICE) is the windows error.
// See https://msdn.microsoft.com/en-us/library/cc231199.aspx // See https://msdn.microsoft.com/en-us/library/cc231199.aspx
if ok && noerr != 0x11 { if ok && noerr != 0x11 {
return errors.Wrapf(terr, "link error: cannot rename %s to %s", src, dst) return fmt.Errorf("link error: cannot rename %s to %s: %w", src, dst, terr)
} }
} }

Loading…
Cancel
Save