Skip to content

Commit

Permalink
file:list_dir/0 returns {error, Reason} not Reason
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmiguel committed Apr 10, 2018
1 parent 17bd1c0 commit 778e213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/vim-erlang-tags.erl
Expand Up @@ -242,9 +242,9 @@ process_dir_tree(Top, Tags) ->
RelFileNames = [filename:join(Top, FileName) ||
FileName <- FileNames],
process_filenames(RelFileNames, Tags);
eacces ->
{error, eacces} ->
log_error("Permission denied: ~s~n", [Top]);
enoent ->
{error, enoent} ->
log_error("Directory does not exist: ~s~n", [Top])
end
end.
Expand Down

0 comments on commit 778e213

Please sign in to comment.