From c2a4198efc53865781064ca7b6cfbaa317b5dd81 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Sun, 27 Nov 2022 17:45:27 -0800 Subject: [PATCH] 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. --- testing/fake-editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/fake-editor.rs b/testing/fake-editor.rs index d62736025..6ec3f9fd8 100644 --- a/testing/fake-editor.rs +++ b/testing/fake-editor.rs @@ -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) } }