rescue BadBarcodeError in controller