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 41bfc0c..cca52ed 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.02559 seconds and 4 git commands to generate.