Magik.TelegramNoti.send_error
You're seeing just the function
send_error
, go back to Magik.TelegramNoti module for more information.
Specs
Format error and send to Telegram conversation.
defmodule MyApp.Calculator do
...
def divide(a, b)do
try do
...
catch
error ->
Magik.TelegramNoti.send_error(:api, "MyApp.Calculator error", [a,b], %{kind: :error, reason: error, stack: __STACKTRACE__})
# return your error
end
end
end