mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Merge pull request #7851 from jasongrout/fix-error-message
Fix contentsmanager api error message to give the path name
This commit is contained in:
commit
3608f27e7e
@ -348,7 +348,7 @@ class FileContentsManager(FileManagerMixin, ContentsManager):
|
|||||||
else:
|
else:
|
||||||
if type == 'directory':
|
if type == 'directory':
|
||||||
raise web.HTTPError(400,
|
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)
|
model = self._file_model(path, content=content, format=format)
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user