Add a slightly more informative error to dcpomatic_server_cli.
authorCarl Hetherington <cth@carlh.net>
Sun, 13 Mar 2016 22:40:52 +0000 (22:40 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 13 Mar 2016 22:40:52 +0000 (22:40 +0000)
src/tools/dcpomatic_server_cli.cc

index 336d578eef2c881a49c50ccff7cddbf0be1e2304..e51e53399466384d6533f2e28c1ee5d29e36c994 100644 (file)
@@ -120,6 +120,8 @@ main (int argc, char* argv[])
                        exit (EXIT_FAILURE);
                }
                cerr << argv[0] << ": " << e.what() << "\n";
+       } catch (std::exception& e) {
+               cerr << argv[0] << ": failed to start server; " << e.what() << "\n";
        }
        return 0;
 }