ErrorHelper doesn't exist on Phoenix 1.7 as I think moved to Component along with translations. We had the default file with the addition of the function status_code_from_template. I have moved this function to be inside ErrorJSON
The previous ErrorView.template_not_found is now ErrorJSON.render
Outstanding Issues:
Edited ViewCase (Route.Helpers > VerifiedRoutes). It seems we do not even generate this file in output though?
translate_error that use to be in ErrorHelper has been moved to CoreComponents in 1.7 for use with input component. I tried to import this but module not found so redefined the functions in ErrorJSON
Insight 📝
N/A
Proof Of Work 📹
New project with test API for response:
The tests we had before are passing for the response
https://github.com/nimblehq/elixir-templates/issues/??
What happened 👀
Completed:
1.7
as I think moved to Component along with translations. We had the default file with the addition of the functionstatus_code_from_template
. I have moved this function to be inside ErrorJSONErrorView.template_not_found
is nowErrorJSON.render
Outstanding Issues:
translate_error
that use to be in ErrorHelper has been moved to CoreComponents in 1.7 for use with input component. I tried to import this but module not found so redefined the functions in ErrorJSONInsight 📝
N/A
Proof Of Work 📹
New project with test API for response:
The tests we had before are passing for the response