From 512187ac102c0217d70721accd48434fc1afc6b2 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Tue, 24 Feb 2015 20:45:20 +0000 Subject: [PATCH] Fix contentsmanager api error message to give the path name --- IPython/html/services/contents/filemanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/services/contents/filemanager.py b/IPython/html/services/contents/filemanager.py index 29ddfde5f..c502d4816 100644 --- a/IPython/html/services/contents/filemanager.py +++ b/IPython/html/services/contents/filemanager.py @@ -348,7 +348,7 @@ class FileContentsManager(FileManagerMixin, ContentsManager): else: if type == 'directory': raise web.HTTPError(400, - u'%s is not a directory', reason='bad type') + u'%s is not a directory' % path, reason='bad type') model = self._file_model(path, content=content, format=format) return model