Trap GenServer Error

I am getting this error - I know the reason why I get it so I don’t need help with that, what I need help with is how to ‘trap’ the error so that I can display a meaningful explanation to the users instead of the Elixir error page.

The error in question:

Thanks for your time!

You should be able to use Plug.ErrorHandler.

Alternatively, in your controller wrap the function call that crashes in a try.

Thanks. I’ll check it out.