I'm not sure about this. IMO the differ is responsible for generating the textual diff not for how that information is integrated into an error message. Moving this into the differ would mean each caller would have less control over display of that output.