# stage2: slightly improve error reporting for missing imports · gitcafe/zig

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

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

Visibility: public

Requested revision: 150515f44db9cecbda31d579861dc6f6080c2f75

Requested commit: 150515f44db9cecbda31d579861dc6f6080c2f75

Commit: 150515f44db9cecbda31d579861dc6f6080c2f75

Tree: 859145a3479f7e9880269b2ef945bfce3043ccf3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: slightly improve error reporting for missing imports

There is now a distinction between `@import` with a .zig extension and
without. Without a .zig extension it assumes it is a package name, and
returns error.PackageNotFound if not mapped into the package table.

```

## Parents

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

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