Fix copy.Error casing in documentation GH-22004

1 file changed