# "No such file or directory" error could be more specific

**URL:** <https://forum.dfinity.org/t/no-such-file-or-directory-error-could-be-more-specific/1610>\
**Category:** Command Line Tools\
**Created:** [November 30, 2020, 7:06pm UTC](https://forum.dfinity.org/t/no-such-file-or-directory-error-could-be-more-specific/1610 "2020-11-30T19:06:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mymikemiller](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mymikemiller/32/694_2.png) [@mymikemiller](https://forum.dfinity.org/u/mymikemiller)\
**Post date:** [November 30, 2020, 7:06pm UTC](https://forum.dfinity.org/t/no-such-file-or-directory-error-could-be-more-specific/1610/1 "2020-11-30T19:06:38Z")

</div>

I’ve gotten the following error a few times when running `dfx build`. It would be nice if the error listed what files weren’t found so I can more easily address the problem. As it is, unless you’re building very often and happen to catch the missing file as you add a reference somewhere, it’s hard to track down exactly what’s missing.

The error is as follows:

```auto
$ dfx build
Building canisters...
Building frontend...
Build failed. Reason:
  Postbuild step failed for canister cxeji-wacaa-aaaaa-aaaaa-aaaaa-aaaaa-aaaaa-q with error: An error occured:
Io(
    Os {
        code: 2,
        kind: NotFound,
        message: "No such file or directory",
    },
)

```

I’m running dfx version 0.6.12

---

<div class="post-metadata">

**Author:** ![hansl](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/hansl/32/134_2.png) [@hansl](https://forum.dfinity.org/u/hansl)\
**Post date:** [December 1, 2020, 4:35pm UTC](https://forum.dfinity.org/t/no-such-file-or-directory-error-could-be-more-specific/1610/2 "2020-12-01T16:35:48Z")

</div>

We’ve had some major rework of how internal errors are represented. Watch for the next few releases, it should have more information.
