Small error reporting fix