Last active
August 29, 2015 14:14
-
-
Save nathanpalmer/ef4a3b0e52cb7ea95613 to your computer and use it in GitHub Desktop.
Addon Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment