Issue |
147020
|
Summary |
[mlir] Error message for optional properties is confusing
|
Labels |
mlir
|
Assignees |
|
Reporter |
peledins-zimperium
|
I had to look up source code for this error message:
```
return emitError(loc, "only properties with default values "
"that can be optionally parsed "
"can be used to anchor an optional group");
```
to understand that "optionally parsed" means that it must have the optional parser enabled.
I think a better error message would be:
```
return emitError(loc, "only properties with `defaultValue` "
"that also have `optionalParser` "
"can be used to anchor an optional group");
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs