diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-02-02 19:56:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-02-02 20:17:35 +0100 |
| commit | 0b59b4f8da889a547a1be03f51118769d73aff2a (patch) | |
| tree | 205b26a4913a38fdcf5d96f77a2bbbade13d23ab /src/tools | |
| parent | ea6b2dae46caa1da829fbf499e83cd6ae3b3773a (diff) | |
boost exception test.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 10 | ||||
| -rw-r--r-- | src/tools/wscript | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 47851a218..d50604740 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -450,6 +450,11 @@ public: catch (std::exception& e) { wxString p = std_to_wx (file.string ()); wxCharBuffer b = p.ToUTF8 (); + boost::stacktrace::stacktrace* st = boost::get_error_info<traced>(e); + std::cout << "Amiga!\n"; + if (st) { + std::cout << "Awooga! " << *st << "\n"; + } error_dialog (this, wxString::Format (_("Could not open film at %s"), p.data()), std_to_wx (e.what())); } @@ -1683,6 +1688,11 @@ private: ) ); } catch (exception& e) { + boost::stacktrace::stacktrace* st = boost::get_error_info<traced>(e); + std::cout << "Amiga!\n"; + if (st) { + std::cout << "Awooga! " << *st << "\n"; + } error_dialog ( 0, wxString::Format ( diff --git a/src/tools/wscript b/src/tools/wscript index 3b2c0a04c..ad8d00c25 100644 --- a/src/tools/wscript +++ b/src/tools/wscript @@ -35,6 +35,9 @@ def build(bld): if bld.env.TARGET_WINDOWS: uselib += 'WINSOCK2 DBGHELP SHLWAPI MSWSOCK BOOST_LOCALE WINSOCK2 OLE32 DSOUND WINMM KSUSER ' + if bld.env.TARGET_LINUX: + uselib += 'DL' + cli_tools = [] if bld.env.VARIANT == 'swaroop-theater': cli_tools = [ 'dcpomatic_uuid'] |
