HomePhabricator

dispatch: show empty filename in OSError aborts

Authored by kiilerix.

Description

dispatch: show empty filename in OSError aborts

Mercurial would sometimes exit with:

abort: No such file or directory

where str of the actual OSError exception was the more helpful:

[Errno 2] No such file or directory: ''

The exception will now always show the filename and quote it:

abort: No such file or directory: ''

Details

Committed
kiilerixJan 6 2013, 8:00 PM
Parents
rHGfe67db018bd7: test-dispatch.t: remove incorrect "cd $dir"
Branches
Unknown
Tags
Unknown