Forensic
Forensic.error is a macro, which returns the description of the error in the context, where it had occured.
Installation
def deps do
[
{:forensic, "~> 0.1.0"}
]
end
Concept
Return the error tuple in the format:
{:error, {__MODULE__, __ENV__.function, vars, error}}
Usage
require Forensic
...
Forensic.error(error_to_describe)
...
License
MIT. Do what you want.