Added error to ocr.run callback