github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/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 });