envanter scan: handle errors