Make log location more explicit in error message

See https://github.com/QubesOS/qubes-issues/issues/4224#issuecomment-414513721.
This commit is contained in:
AJ Jordan 2018-08-30 13:12:06 -04:00
parent 4dab769934
commit 5aa35a1208
No known key found for this signature in database
GPG Key ID: A4FDB7BE12F63EC3

View File

@ -1298,9 +1298,9 @@ class Qubes(qubes.PropertyHolder):
self.log.error(
'Cannot remove %s, used by %s.%s',
vm, obj, prop.__name__)
raise qubes.exc.QubesVMInUseError(vm,
'Domain is in use: {!r}; details in system log'
.format(vm.name))
raise qubes.exc.QubesVMInUseError(vm, 'Domain is in '
'use: {!r}; see /var/log/qubes/qubes.log in dom0 for '
'details'.format(vm.name))
except AttributeError:
pass