Fix recording of compile errors
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 8 Feb 2014 18:42:02 +0000 (20:42 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 8 Feb 2014 18:42:02 +0000 (20:42 +0200)
lib/Gruntmaster/Daemon/Format.pm

index 99fe5144c433f6f09ab652e5420f5ff2a355be3f..5b5081e97a9682030d331074244c8adba9055478 100644 (file)
@@ -72,11 +72,10 @@ sub mkrun{
 
 sub prepare{
        my ($name, $format) = @_;
-       our $errors;
        get_logger->trace("Preparing file $name...");
 
-       $errors .= `gruntmaster-compile $format $name 2>&1`;
-       $errors .= "\n";
+       $Gruntmaster::Daemon::errors .= `gruntmaster-compile $format $name 2>&1`;
+       $Gruntmaster::Daemon::errors .= "\n";
        die 'Compile error' if $?
 }
 
This page took 0.013073 seconds and 4 git commands to generate.