Repository: syncthing/syncthing (language: go)

Issue:
Unintelligible error message "setting metadata: lookup failed"
### What happened?

I have tried to sync one folder and I am getting error syncing: finishing: setting metadata: lookup failed, the folder is set to "download only" file that are not syncing are .pdf and .tar 


### Syncthing version

v1.27.4

### Platform & operating system

Windows 11 x64

### Browser version

Edge 132.0.2957.115

### Relevant log output

```shell

```


Discussion / hints:
```
syncing: finishing: setting metadata: lookup failed
```
I have tried re-syncing it by deleting folder in the panel and on the pc, every time I am trying to sync it I am getting the same error
You're running with owner syncing enabled, but the owner doesn't exist on the other side. If you want help with troubleshooting that, I suggest the forum.

I'll take this issue as a bug report that the error is really unclear though, because it is.

Fix patch:
diff --git a/lib/model/folder_sendrecv_windows.go b/lib/model/folder_sendrecv_windows.go
index 28ebe01d14c..6028ca522ee 100644
--- a/lib/model/folder_sendrecv_windows.go
+++ b/lib/model/folder_sendrecv_windows.go
@@ -7,7 +7,7 @@
 package model
 
 import (
-	"errors"
+	"fmt"
 	"os/user"
 	"strings"
 
@@ -44,7 +44,7 @@ func lookupUserAndGroup(name string, group bool) (string, string, error) {
 			return "", err
 		})
 		if err != nil {
-			return "", "", err
+			return "", "", fmt.Errorf("lookup group %v: %w", name, err)
 		}
 		return "", gr, nil
 	}
@@ -57,7 +57,7 @@ func lookupUserAndGroup(name string, group bool) (string, string, error) {
 		return "", err
 	})
 	if err != nil {
-		return "", "", err
+		return "", "", fmt.Errorf("lookup user %v: %w", name, err)
 	}
 	return us, "", nil
 }
@@ -74,9 +74,9 @@ func lookupWithoutDomain(name string, lookup func(s string) (string, error)) (st
 	}
 	parts := strings.Split(name, `\`)
 	if len(parts) == 2 {
-		if v, err := lookup(parts[1]); err == nil {
+		if v, err = lookup(parts[1]); err == nil {
 			return v, nil
 		}
 	}
-	return "", errors.New("lookup failed")
+	return "", err
 }


Test patch: