From: Marius Gavrilescu Date: Sat, 8 Feb 2014 18:42:02 +0000 (+0200) Subject: Fix recording of compile errors X-Git-Tag: 5999.000_002~9 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=42e80e2d00aa2c6b3a5c7b2ec96473296468bec9;p=gruntmaster-daemon.git Fix recording of compile errors --- diff --git a/lib/Gruntmaster/Daemon/Format.pm b/lib/Gruntmaster/Daemon/Format.pm index 99fe514..5b5081e 100644 --- a/lib/Gruntmaster/Daemon/Format.pm +++ b/lib/Gruntmaster/Daemon/Format.pm @@ -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 $? }