diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-04-22 22:01:13 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-04-22 22:01:13 -0500 |
commit | 390d1afb77fe58c0f083b46ad114a37d1ad1d91d (patch) | |
tree | cf62f99bf1c8121659fcb73abdd9a0803aa7f5b4 | |
parent | acf8c5ce65718fbaaae666baf312890f3e8857af (diff) |
update readme provider
-rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -73,7 +73,8 @@ Example: -behaviour(rebar_provider). -export([init/1, - do/1]). + do/1, + format_error/1]). -define(PROVIDER, something). -define(DEPS, []). @@ -98,6 +99,10 @@ init(State) -> do(State) -> %% Do something {ok, State}. + +-spec format_error(any()) -> iolist(). +format_error(Reason) -> + io_lib:format("~p", [Reason]). ``` |