Display an error if a delete() results in a database error