mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +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:
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user