error now displayed as an alert