# stage2: improve error message for missing member in file root struct · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b3c6d774d292e6e4ddf4cd54455c4ef3c6386d66)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b3c6d774d292e6e4ddf4cd54455c4ef3c6386d66

Requested commit: b3c6d774d292e6e4ddf4cd54455c4ef3c6386d66

Commit: b3c6d774d292e6e4ddf4cd54455c4ef3c6386d66

Tree: 782ba20f4fa00b095b1aec1db866833947b53882

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
stage2: improve error message for missing member in file root struct

* the root struct decl name is fully qualified
  this prevents error messages containing 'main.main'
* avoid declared here note when file struct is missing a member
  It always points at the start of the file which might contain another
  container misleading the user.

```

## Parents

- [409cf4aeb826d8f7c35f0aa10bb0a8fe45188555](https://git.cafe/gitcafe/zig/commit/409cf4aeb826d8f7c35f0aa10bb0a8fe45188555?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b3c6d774d292e6e4ddf4cd54455c4ef3c6386d66?format=markdown)
