jrburke/requirejs — Issue #205: Implement context sensitiv error handling
Author: it-ony
Created: 2012-03-08 08:02:36+00:00
State: open

The documentation shows how to handle errors

```javascript
requirejs.onError = function (err) {
console.log(err.requireType);
if (err.requireType === 'timeout') {
console.log('modules: ' + err.requireModules);
}

throw err;
};
```

I need a require context sensitiv error handling. Here's my draft

```javascript
require(['a', 'b'], function (a, b) {
// do something
}, function (err) {
// optional register an error callback
});
```

Possible, or already available?