small error reporting change