https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39353 --- Comment #7 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Comment on attachment 179387 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179387 Bug 39353: Prevent tidy.pl to empty template files Review of attachment 179387: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=39353&attachment=179387) ----------------------------------------------------------------- Should severity be raised to critical at least? ::: misc/devel/tidy.pl @@ +203,5 @@
$content =~ s#\n*( *)</script>\n*#\n$1</script>\n#g; $content =~ s#(\[%\s*SWITCH[^\]]*\]\n)\n#$1#g;
+ unless ($content) { + return ( 0, "Something went wrong, Prettier generated an empty file.", [], [], [] );
Maybe add a bit to the message: "Something went wrong, Prettier generated an empty file. Original file was kept." So the output after a commit doesn't cast doubt about corruption. -- You are receiving this mail because: You are watching all bug changes.