github.com/manicqin/nomad@v0.9.5/ui/app/utils/notify-error.js (about) 1 // An error handler to provide to a promise catch to set an error 2 // on the application controller. 3 export default function notifyError(route) { 4 return error => { 5 route.controllerFor('application').set('error', error); 6 }; 7 }