Commit d7cbee5d authored by Yadd's avatar Yadd
Browse files

Better conf backend errors report

parent b20b161c
Pipeline #14372 canceled with stage
......@@ -119,6 +119,7 @@ sub saveConf {
my ( $self, $conf, %args ) = @_;
my $last = $self->lastCfg;
return UNKNOWN_ERROR if $last < 1;
Please register or sign in to reply
# If configuration was modified, return an error
if ( not $args{force} ) {
......@@ -395,6 +396,7 @@ sub getDBConf {
: $a[0];
}
my $conf = $self->load( $args->{cfgNum} );
return undef if $conf == "-1";
$msg .= "Get configuration $conf->{cfgNum}.\n"
if ( defined $conf->{cfgNum} );
return $conf;
......@@ -413,7 +415,11 @@ sub _launch {
alarm 0;
die $@ if $@;
};
$msg .= $@ if $@;
if($@) {
$msg .= $@;
print STDERR "MSG $msg\n";
return undef;
}
return wantarray ? (@res) : $res[0];
}
......
[all]
logLevel = debug
logLevel = error
localSessionStorage =
localSessionStorageOptions =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment