Is it possible to show compilation errors on the Phoenix Error Page?

On the default Phoenix error page in development (for 500 errors) is it possible to show compilation errors there so that you don’t always need to go to the console? Currently you often see errors like:

UndefinedFunctionError at GET /
function Tracker.Web.PageView.render/2 is undefined (module Tracker.Web.PageView is not available)

Yet the error is really a compilation error that prevented Tracker.Web.PageView from being compiled after a change was made.

I don’t know - but one workaround is to get the error straight in your editor on save - say if you use the formatter on save - I think that will blow up if there is a compile error…

1 Like