github.com/blixtra/nomad@v0.7.2-0.20171221000451-da9a1d7bb050/ui/app/mixins/with-model-error-handling.js (about)

     1  import Ember from 'ember';
     2  import notifyError from 'nomad-ui/utils/notify-error';
     3  
     4  const { Mixin } = Ember;
     5  
     6  export default Mixin.create({
     7    model() {
     8      return this._super(...arguments).catch(notifyError(this));
     9    },
    10  });