That is the check you mentioned, for compilation. It just moved because of
the async reorg.

Will tweak message.
On 20/06/2013 2:03 PM, "Marli Oshlack" <notifications@github.com> wrote:

> In compiler/src/compile/compiler.js:
>
> >          if (!sources.can(id))
> >            error.die('Configuration error: no source found to load module: ' + id);
> >
> > -        load(sources, id);
> > +        load(sources, id, function () {
> > +          if (modules[id] === undefined)
> > +            error.die('Configuration error: module [' + id + '] was not loaded from expected source');
>
> Didn't we already have a check/fail somewhere at some point if a module in
> a file was misnamed? Or am I making that up? (It could be in dev mode
> perhaps that we ensure when a module is loaded, a module with the requested
> id actually gets defined.)
>
> I guess this check covers that case. Maybe we could change the error
> message to note misnamed module as a possible cause as well?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/boltjs/bolt/pull/1/files#r4789485>
> .
>