lib: Log errors in Angular dialogs
lib: Log errors in Angular dialogs

This is for easier debugging, both in our tests and by users
copying and pasting from the javascript console.

Closes #5753
Reviewed-by: Dominik Perpeet <f7830b2723a5db4fc185058b06cfab4b89a38da9@redhat.com>

stefwalter/cockpit,dperpeet/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,petervo/cockpit,cockpit-project/cockpit,larskarlitski/cockpit,mareklibra/cockpit,petervo/cockpit,dperpeet/cockpit,moraleslazaro/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,andreasn/cockpit,andreasn/cockpit,larsu/cockpit,cockpit-project/cockpit,harishanand95/cockpit,dperpeet/cockpit,michalskrivanek/cockpit,michalskrivanek/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,xhad/cockpit,Scribery/cockpit,deryni/cockpit,larskarlitski/cockpit,sgallagher/cockpit,SotolitoLabs/cockpit,dperpeet/cockpit,arilivigni/cockpit,Scribery/cockpit,stefwalter/cockpit,mvollmer/cockpit,andreasn/cockpit,SotolitoLabs/cockpit,andreasn/cockpit,xhad/cockpit,larskarlitski/cockpit,dperpeet/cockpit,mvollmer/cockpit,mvollmer/cockpit,michalskrivanek/cockpit,garrett/cockpit,andreasn/cockpit,larsu/cockpit,larsu/cockpit,sgallagher/cockpit,sgallagher/cockpit,Scribery/cockpit,cockpit-project/cockpit,mareklibra/cockpit,martinpitt/cockpit,Scribery/cockpit,harishanand95/cockpit,larskarlitski/cockpit,cockpit-project/cockpit,harishanand95/cockpit,deryni/cockpit,deryni/cockpit,xhad/cockpit,dperpeet/cockpit,moraleslazaro/cockpit,martinpitt/cockpit,harishanand95/cockpit,petervo/cockpit,deryni/cockpit,garrett/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,andreasn/cockpit,xhad/cockpit,sgallagher/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,petervo/cockpit,Scribery/cockpit,larsu/cockpit,stefwalter/cockpit,sgallagher/cockpit,larsu/cockpit,SotolitoLabs/cockpit,arilivigni/cockpit,mareklibra/cockpit,Scribery/cockpit,harishanand95/cockpit,arilivigni/cockpit,arilivigni/cockpit,mareklibra/cockpit,sgallagher/cockpit,stefwalter/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,martinpitt/cockpit,cockpituous/cockpit,larsu/cockpit,arilivigni/cockpit,cockpituous/cockpit,arilivigni/cockpit,martinpitt/cockpit,petervo/cockpit,mareklibra/cockpit,Scribery/cockpit,cockpituous/cockpit,deryni/cockpit,harishanand95/cockpit,harishanand95/cockpit,cockpituous/cockpit,SotolitoLabs/cockpit,mvollmer/cockpit,sgallagher/cockpit,xhad/cockpit,xhad/cockpit,andreasn/cockpit,petervo/cockpit,cockpituous/cockpit,cockpituous/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,garrett/cockpit,stefwalter/cockpit,petervo/cockpit,larskarlitski/cockpit,garrett/cockpit,michalskrivanek/cockpit,garrett/cockpit,deryni/cockpit,stefwalter/cockpit,deryni/cockpit,stefwalter/cockpit,larskarlitski/cockpit,dperpeet/cockpit,arilivigni/cockpit,xhad/cockpit