Change error messages from alerts to console logs