Handle errors with alertviews