Skip to content

Instantly share code, notes, and snippets.

@nathanpalmer
Last active August 29, 2015 14:14
Show Gist options
  • Save nathanpalmer/ef4a3b0e52cb7ea95613 to your computer and use it in GitHub Desktop.
Save nathanpalmer/ef4a3b0e52cb7ea95613 to your computer and use it in GitHub Desktop.
Addon Application
import Ember from 'ember';
initialize = function(container, app) {
container.lookup('route:application').reopen({
error: function(error, transition, originRoute) {
// Something happens here to prepare the object
// Then we report it to the main application
report(modifiedError);
}
});
};
ErrorsInitializer = {
name: 'errors',
initialize: initialize
};
export default { initialize };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment