Small change to error reporting