early error reporting