Merge pull request #7851 from jasongrout/fix-error-message

Fix contentsmanager api error message to give the path name
This commit is contained in:
Matthias Bussonnier 2015-02-24 14:55:34 -08:00
commit 3608f27e7e

View File

@ -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