Archived
1
0

Errors are best saved and shown

This commit is contained in:
Mercier Pierre-Olivier 2013-09-14 17:57:40 +02:00
parent ecf03827c1
commit 5b8456fa69
2 changed files with 4 additions and 3 deletions

View File

@ -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})

View File

@ -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