Commit a5d2bf2f authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

These two errors deserve different error messages

parent 966f9b31
......@@ -110,7 +110,12 @@ sub param_init {
if(ref($source) ne 'HASH') {
if($strict_hash_format or $source=~/^\{.*\}$/) {
my $param_hash = eval($source) || {};
if($@ or (ref($param_hash) ne 'HASH')) {
if($@) {
if($self->can('transient_error')) {
$self->transient_error(0);
}
die "Could not evaluate '$source': $@\n";
} elsif (ref($param_hash) ne 'HASH') {
if($self->can('transient_error')) {
$self->transient_error(0);
}
......
Markdown is supported
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