github.com/manicqin/nomad@v0.9.5/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  });