improve error reporting for @:require(ident compare const)