mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Fix #232 (rebar_reltool:mk_target_dir)
This commit is contained in:
parent
15d1c275f8
commit
e4bc95500c
1 changed files with 6 additions and 2 deletions
|
@ -223,7 +223,7 @@ run_reltool(Server, _Config, ReltoolConfig) ->
|
|||
|
||||
|
||||
mk_target_dir(TargetDir) ->
|
||||
case file:make_dir(TargetDir) of
|
||||
case filelib:ensure_dir(filename:join(TargetDir, "dummy")) of
|
||||
ok ->
|
||||
ok;
|
||||
{error, eexist} ->
|
||||
|
@ -236,7 +236,11 @@ mk_target_dir(TargetDir) ->
|
|||
?ERROR("Release target directory ~p already exists!\n",
|
||||
[TargetDir]),
|
||||
?FAIL
|
||||
end
|
||||
end;
|
||||
{error, Reason} ->
|
||||
?ERROR("Failed to make target dir ~p: ~s\n",
|
||||
[TargetDir, file:format_error(Reason)]),
|
||||
?FAIL
|
||||
end.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue