summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-04-22 22:01:13 -0500
committerTristan Sloughter <t@crashfast.com>2015-04-22 22:01:13 -0500
commit390d1afb77fe58c0f083b46ad114a37d1ad1d91d (patch)
treecf62f99bf1c8121659fcb73abdd9a0803aa7f5b4
parentacf8c5ce65718fbaaae666baf312890f3e8857af (diff)
update readme provider
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 555cddf..bc2accd 100644
--- a/README.md
+++ b/README.md
@@ -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]).
```