Fix contentsmanager api error message to give the path name

This commit is contained in:
Jason Grout 2015-02-24 20:45:20 +00:00
parent d256f841f0
commit 512187ac10

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