update error messages for batch