github.com/zhizhiboom/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/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 });