Print diff on failure
Handle trailing whitespace with no final newline