From 532f906e874c722e2afe113ae1fccbd8679f443b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 29 Jan 2012 09:42:14 +0530 Subject: [PATCH] ... --- src/calibre/library/server/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/library/server/main.py b/src/calibre/library/server/main.py index 8a4b13651a..afa5d432a3 100644 --- a/src/calibre/library/server/main.py +++ b/src/calibre/library/server/main.py @@ -111,6 +111,10 @@ def main(args=sys.argv): from calibre.utils.config import prefs if opts.with_library is None: opts.with_library = prefs['library_path'] + if not opts.with_library: + print('No saved library path. Use the --with-library option' + ' to specify the path to the library you want to use.') + return 1 db = LibraryDatabase2(opts.with_library) server = LibraryServer(db, opts, show_tracebacks=opts.develop) server.start()