Skip to content

Commit 4f8df0e

Browse files
authored
Merge pull request #632 from 9999years/push-lwxynkmuwpnr
`path ... not inside the tree root`: Show computed relative path
2 parents 1763b0c + b5f54fa commit 4f8df0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

walk/walk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func NewCompositeReader(
309309
}
310310

311311
if strings.HasPrefix(relativePath, "..") {
312-
return nil, fmt.Errorf("path %s not inside the tree root %s", path, root)
312+
return nil, fmt.Errorf("path %s not inside the tree root %s (relative path: %s)", path, root, relativePath)
313313
}
314314

315315
// check the path exists

0 commit comments

Comments
 (0)