# Improve multi-module error messages · gitcafe/zig

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

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

Visibility: public

Requested revision: b8a96baab887e4dcd54d49fb1bbc8294af47392e

Requested commit: b8a96baab887e4dcd54d49fb1bbc8294af47392e

Commit: b8a96baab887e4dcd54d49fb1bbc8294af47392e

Tree: 215e79bf64294803dd70edb5f3bdd6225f3bdcfe

Author: mlugg

Committer: mlugg

## Message

```
Improve multi-module error messages

- Fix assertion failure if AstGen failed on a multi-module file
- Cap number of per-error reference notes and total multi-module errors each at 5
- Always put "root of package" reference notes first

Resolves: #14499

```

## Parents

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

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