Loging errors to the browser console in preview.