From 8ae546b31b685ff4daaf979a20afdb58960c3595 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Wed, 19 Mar 2025 10:49:45 -0400 Subject: [PATCH] Bug 39353: (QA follow-up) Clarify error message Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer --- misc/devel/tidy.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/devel/tidy.pl b/misc/devel/tidy.pl index 9a0213d8f3..2ab5c20c33 100755 --- a/misc/devel/tidy.pl +++ b/misc/devel/tidy.pl @@ -204,7 +204,10 @@ sub tidy_tt { $content =~ s#(\[%\s*SWITCH[^\]]*\]\n)\n#$1#g; unless ($content) { - return ( 0, "Something went wrong, Prettier generated an empty file.", [], [], [] ); + return ( + 0, "Something went wrong, Prettier generated an empty file. The original file was kept", [], + [], [] + ); } if ( $no_write && $pass == 2 ) { print $content;