Skip to content

Commit caabf9f

Browse files
committed
xauth: fix exception message
Use the correct filename instead of hard-coded `~/.Xauthority`.
1 parent 263be33 commit caabf9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Xlib/xauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, filename = None):
4444
try:
4545
raw = open(filename, 'rb').read()
4646
except IOError as err:
47-
raise error.XauthError('~/.Xauthority: %s' % err)
47+
raise error.XauthError('could not read from {0}: {1}'.format(filename, err))
4848

4949
self.entries = []
5050

0 commit comments

Comments
 (0)