Current section

Files

Jump to
webauthn_components lib wac_gen generator_error.ex
Raw

lib/wac_gen/generator_error.ex

defmodule Wac.Gen.GeneratorError do
defexception [:message]
@impl true
def exception(message) do
formatted_message =
"""
🫣 #{message}
πŸ™ Please review the WebauthnComponents issue tracker and open a new issue if necessary.
πŸ‘‰ https://github.com/liveshowy/webauthn_components/issues
πŸ‘‡ For debugging, please include this error and the stacktrace below:
"""
%__MODULE__{message: formatted_message}
end
end