]> iEval git - gruntmaster-daemon.git/commitdiff
Prevent extraneous empty lines in compiler output
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Feb 2015 18:51:54 +0000 (20:51 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Feb 2015 18:51:54 +0000 (20:51 +0200)
lib/Gruntmaster/Daemon/Format.pm

index 41bfc0ced8c88274acb31c1c1a1cd3e4dc4a9569..cca52ed5fc437700b38aa381e61fed7e709d51b4 100644 (file)
@@ -96,7 +96,7 @@ sub prepare{
                die "Compile error\n"
        } finally {
                $Gruntmaster::Daemon::errors .= read_file 'errors';
-               $Gruntmaster::Daemon::errors .= "\n";
+               $Gruntmaster::Daemon::errors .= "\n" if -s 'errors';
                unlink 'errors';
        };
 }
This page took 0.017527 seconds and 4 git commands to generate.