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