Ensure error is not nil before using Error()
diff --git a/repo/installer.go b/repo/installer.go index 8110245..018f8fc 100644 --- a/repo/installer.go +++ b/repo/installer.go
@@ -361,7 +361,7 @@ // When there are different physical devices we cannot rename cross device. // Fall back to manual copy. - if strings.Contains(err.Error(), "invalid cross-device link") { + if err != nil && strings.Contains(err.Error(), "invalid cross-device link") { msg.Debug("Cross link err, trying manual copy: %s", err) err = gpath.CopyDir(vp, i.VendorPath())