14 lines
248 B
Erlang
14 lines
248 B
Erlang
% @doc misc utility functions
|
|
-module(wfc_utils).
|
|
-vsn("0.2.0").
|
|
|
|
-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)).
|