Fixed minor error reporting issue.