mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
parent
37d0ba1660
commit
5a1f6cb813
@ -29,7 +29,7 @@ type ErrCaseConflict struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (e *ErrCaseConflict) Error() string {
|
func (e *ErrCaseConflict) Error() string {
|
||||||
return fmt.Sprintf(`given name "%v" differs from name in filesystem "%v"`, e.Given, e.Real)
|
return fmt.Sprintf(`remote "%v" uses different upper or lowercase characters than local "%v"; change the casing on either side to match the other`, e.Given, e.Real)
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsErrCaseConflict(err error) bool {
|
func IsErrCaseConflict(err error) bool {
|
||||||
|
@ -1203,7 +1203,7 @@ func testPullCaseOnlyDirOrSymlink(t *testing.T, dir bool) {
|
|||||||
}
|
}
|
||||||
if errStr, ok := f.tempPullErrors[remote.Name]; !ok {
|
if errStr, ok := f.tempPullErrors[remote.Name]; !ok {
|
||||||
t.Error("missing error for", remote.Name)
|
t.Error("missing error for", remote.Name)
|
||||||
} else if !strings.Contains(errStr, "differs from name") {
|
} else if !strings.Contains(errStr, "uses different upper or lowercase") {
|
||||||
t.Error("unexpected error", errStr, "for", remote.Name)
|
t.Error("unexpected error", errStr, "for", remote.Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user