range expression error reporting