ok/jj
1
0
Fork 0
forked from mirrors/jj

Make fake-editor error output even more verbose

This is a followup to f4b175a8. When debugging `fake-editor`
failures, it is often useful to distinguish empty files,
files consisting of a single "\n" and so on.
This commit is contained in:
Ilya Grigoriev 2022-11-27 17:45:27 -08:00
parent aeeae0af18
commit c2a4198efc

View file

@ -49,7 +49,7 @@ fn main() {
let actual = String::from_utf8(std::fs::read(&args.file).unwrap()).unwrap();
if actual != payload {
eprintln!("fake-editor: Unexpected content.\n");
eprintln!("EXPECTED: {payload}\nRECEIVED: {actual}");
eprintln!("EXPECTED: <{payload}>\nRECEIVED: <{actual}>");
exit(1)
}
}