Errors are best saved and shown
This commit is contained in:
parent
ecf03827c1
commit
5b8456fa69
@ -50,8 +50,8 @@ sub parse($$)
|
||||
if ($@)
|
||||
{
|
||||
$parsed->{result} = 256;
|
||||
$parsed->{message} = "Erreur du parser.";
|
||||
log WARN, "Erreur du parser";
|
||||
$parsed->{message} = "Erreur du parser : $@";
|
||||
log WARN, "Erreur du parser.";
|
||||
}
|
||||
|
||||
if (! exists $parsed->{result})
|
||||
|
@ -3,11 +3,12 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use v5.10;
|
||||
use File::Basename;
|
||||
|
||||
use ACU::API::Projects;
|
||||
use ACU::LDAP;
|
||||
use ACU::Log;
|
||||
$ACU::Log::log_file = undef;
|
||||
$ACU::Log::log_file = "/var/log/hooks/" . basename($0) . ".log";
|
||||
use ACU::Process;
|
||||
|
||||
# First, check if the repository is in the subjects/ directory
|
||||
|
Reference in New Issue
Block a user