github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/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 }