amdjs / amdjs-api

Houses the Asynchronous Module Definition API
https://groups.google.com/group/amd-implement
4.31k stars 499 forks source link

Clarify how loaders should communicate errors #30

Open binki opened 8 years ago

binki commented 8 years ago

I was looking at https://github.com/amdjs/amdjs-api/blob/67486d6b199cd026f5e66151566836c8ba149099/LoaderPlugins.md and couldn’t find anything obviously sticking out on how a loader plugin should communicate load failure. It doesn’t seem like load() should be called when there is an error. Should there be a new error callback or something?

jrburke commented 8 years ago

I don't think there is much interest in fleshing out the loader plugin API much now, so I would not expect much activity here. requirejs does allow an error notification by calling load.error(), described as onload.error in its plugin doc section.