Adding hasError sample