Replaced remaining lazy alert() calls with new error function (to be improved upon)