throw_error(): Print error to stderr when being called internally
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 3 Apr 2011 20:55:26 +0000 (22:55 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 3 Apr 2011 22:10:23 +0000 (00:10 +0200)
commitaf80cd56e3b68cbc0de1fa1d03f9b2b2463aa514
tree7cbf17772ce2bae84bb42462531b07a5c7f191bc
parent4b4746ee28804cb50229c6c42457c4f80c60faca
throw_error(): Print error to stderr when being called internally

throw_error() immediately returns for Device methods which are called
internally from the daemon (i. e. without an actual PolicyKit check), as we do
not have a D-BUS invocation context. Print out the error message in this case
as well.
src/device.c