mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
descriptive log for port unavailable and port-retries=0
This commit is contained in:
parent
d0a74353e6
commit
d04b35cab5
@ -1502,8 +1502,12 @@ class NotebookApp(JupyterApp):
|
||||
success = True
|
||||
break
|
||||
if not success:
|
||||
self.log.critical(_('ERROR: the notebook server could not be started because '
|
||||
if self.port_retries:
|
||||
self.log.critical(_('ERROR: the notebook server could not be started because '
|
||||
'no available port could be found.'))
|
||||
else:
|
||||
self.log.critical(_('ERROR: the notebook server could not be started because '
|
||||
'port %i is not available.') % port)
|
||||
self.exit(1)
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user