Prevent errors to be displayed in views