Routes errors to the app