Skip to content

Commit d0de54e

Browse files
oxinaboxnfelt
authored andcommitted
Improve error message when logdir/db not given. (#1189)
1 parent ed11dc9 commit d0de54e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tensorboard/program.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,10 @@ def create_tb_app(plugins, assets_zip_provider=None):
202202
:rtype: types.FunctionType
203203
"""
204204
if not FLAGS.db and not FLAGS.logdir:
205-
raise ValueError('A logdir must be specified when db is not specified. '
206-
'Run `tensorboard --help` for details and examples.')
205+
raise ValueError('A logdir or db must be specified. '
206+
'For example `tensorboard --logdir mylogdir` '
207+
'or `tensorboard --db sqlite:~/.tensorboard.db`. '
208+
'Run `tensorboard --helpfull` for details and examples.')
207209
return application.standard_tensorboard_wsgi(
208210
assets_zip_provider=assets_zip_provider,
209211
db_uri=FLAGS.db,

0 commit comments

Comments
 (0)