Use erlang:nif_error to make dialyzer happy

And mark some of the NIF functions
This commit is contained in:
Carlos Martín Nieto
2013-01-25 02:56:34 +01:00
parent 5ede846988
commit 3c6b1ddaf5
3 changed files with 11 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ open(Path) ->
Other
end.
-spec init(iolist(), boolean()) -> {ok, term()} | {error, term()}.
-spec init(iolist(), boolean()) -> {ok, repo()} | {error, term()}.
init(Path, Bare) ->
case geef:repository_init(Path, Bare) of
{ok, Handle} ->