Merge branch 'naufraghi-patch-2'

This commit is contained in:
Anthony Scopatz 2015-03-16 19:41:05 -05:00
commit 70c7d9399d

View file

@ -138,8 +138,8 @@ def xonshrc_context(rcfile=None, execer=None):
try:
execer.filename = rcfile
execer.exec(rc, glbs={}, locs=env)
except SyntaxError:
warn('syntax error in xonsh run control file {0!r}'.format(rcfile),
except SyntaxError as err:
warn('syntax error in xonsh run control file {0!r}: {1!s}'.format(rcfile, err),
RuntimeWarning)
finally:
execer.filename = fname