From 422844f164335dbc06dbd72fafb63828bad4491a 2010-01-15 07:25:20 From: Fernando Perez Date: 2010-01-15 07:25:20 Subject: [PATCH] Make an error message a bit easier to understand. --- diff --git a/IPython/utils/genutils.py b/IPython/utils/genutils.py index 0e4a7a2..f4f5fa4 100644 --- a/IPython/utils/genutils.py +++ b/IPython/utils/genutils.py @@ -635,9 +635,9 @@ def filefind(filename, path_dirs=None): testname = expand_path(os.path.join(path, filename)) if os.path.isfile(testname): return os.path.abspath(testname) - raise IOError("File does not exist in any " - "of the search paths: %r, %r" % \ - (filename, path_dirs)) + + raise IOError("File %r does not exist in any of the search paths: %r" % + (filename, path_dirs) ) #----------------------------------------------------------------------------