Last active
June 30, 2020 02:50
-
-
Save noelworden/455f481f500117b5ee1218507f5d46cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_message(error) do | |
| converted_opts = Enum.map(error.opts, fn {key, value} -> | |
| {String.to_existing_atom(key), value} | |
| end) | |
| translate_error({"#{error.message}", converted_opts}) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment