errors caught and warning display