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:
parent
aeeae0af18
commit
c2a4198efc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue