Updated bag processor to use ErrorMessage