wip
This commit is contained in:
+3
-1
@@ -1,10 +1,12 @@
|
||||
% @doc misc utility functions
|
||||
-module(wfc_utils).
|
||||
|
||||
-export([err/2, emsg/2]).
|
||||
-export([err/2, str/2, emsg/2]).
|
||||
|
||||
err(Fmt, Pat) ->
|
||||
{error, emsg(Fmt, Pat)}.
|
||||
|
||||
str(X, Y) -> emsg(X, Y).
|
||||
|
||||
emsg(Fmt, Pat) ->
|
||||
unicode:characters_to_list(io_lib:format(Fmt, Pat)).
|
||||
|
||||
Reference in New Issue
Block a user