# stage2: fix cleanup code for \`@import\` errors · gitcafe/zig

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

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

Visibility: public

Requested revision: e266ede6e310b64adcf3912b8ef2b9e2397fde7b

Requested commit: e266ede6e310b64adcf3912b8ef2b9e2397fde7b

Commit: e266ede6e310b64adcf3912b8ef2b9e2397fde7b

Tree: 45dc81753836fccb9343b8031214dea137bbe63a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix cleanup code for `@import` errors

When adding test coverage, I noticed an inconsistency in which source
location the compile error was pointing to for `@embedFile` errors vs
`@import` errors. They now both point to the same place, the string
operand.

closes #9404
closes #9939

```

## Parents

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

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