github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/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 }