Skip to content

Commit

Permalink
keep custom exception, for testing purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Oct 10, 2012
1 parent ee7f577 commit ff45f8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/FusionInventory/Agent/Storage.pm
Expand Up @@ -19,7 +19,10 @@ sub new {
# {error => \my $err} is not supported on RHEL 5,
# we let mkpath call die() itself
# http://forge.fusioninventory.org/issues/1817
mkpath($params{directory});
eval {
mkpath($params{directory});
};
die "Can't create $params{directory}: $EVAL_ERROR" if $EVAL_ERROR;
}

if (! -w $params{directory}) {
Expand Down

0 comments on commit ff45f8d

Please sign in to comment.