Improve QubesDaemonNoResponseError error message

Include hint to look into dom0 logs

QubesOS/qubes-issues#3016
This commit is contained in:
Marek Marczykowski-Górecki 2017-08-12 15:15:52 +02:00
parent 188bc2799b
commit 5b7947b51a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
3 changed files with 5 additions and 3 deletions

View File

@ -79,7 +79,8 @@ class PropertyHolder(object):
if response_data == b'':
raise qubesadmin.exc.QubesDaemonNoResponseError(
'Got empty response from qubesd')
'Got empty response from qubesd. See journalctl in dom0 for '
'details.')
if response_data[0:2] == b'\x30\x00':
return response_data[2:]

View File

@ -126,7 +126,7 @@ class StoragePoolException(QubesException):
class QubesDaemonCommunicationError(QubesException, IOError):
'''Error while communicating with qubesd, may mean insufficient
permissions, as well'''
permissions as well'''
class DeviceAlreadyAttached(QubesException, KeyError):

View File

@ -56,4 +56,5 @@ class TC_00_Errors(qubesadmin.tests.QubesTestCase):
as context:
vms = list(self.app.domains)
self.assertEqual(str(context.exception),
'Got empty response from qubesd')
'Got empty response from qubesd. '
'See journalctl in dom0 for details.')