github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/ui/app/mixins/with-model-error-handling.js (about) 1 import Mixin from '@ember/object/mixin'; 2 import notifyError from 'nomad-ui/utils/notify-error'; 3 4 export default Mixin.create({ 5 model() { 6 return this._super(...arguments).catch(notifyError(this)); 7 }, 8 });