fix error reporting typo