Skip to content

Commit

Permalink
fix a bug in Mojo::File where the make_path method would die even if …
Browse files Browse the repository at this point in the history
…no error occurred (closes #1039)
  • Loading branch information
kraih committed Jan 17, 2017
1 parent 5341b43 commit ea6c74d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Changes
@@ -1,5 +1,7 @@

7.20 2017-01-15
7.20 2017-01-17
- Fixed a bug in Mojo::File where the make_path method would die even if no
error occurred.

7.19 2017-01-14
- Added module Mojo::IOLoop::TLS.
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/File.pm
Expand Up @@ -59,8 +59,7 @@ sub list_tree {

sub make_path {
my $self = shift;
File::Path::make_path $$self, @_
or croak qq{Can't make directory "$$self": $!};
File::Path::make_path $$self, @_;
return $self;
}

Expand Down

0 comments on commit ea6c74d

Please sign in to comment.