just print error and break loop