github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/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 }