Compact error checking on scan.