Better error handling.
authorCarl Hetherington <cth@carlh.net>
Thu, 10 Oct 2013 12:18:08 +0000 (13:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 10 Oct 2013 12:18:08 +0000 (13:18 +0100)
src/tools/dcpomatic_kdm.cc

index e2197e52278d3663b83dc22342b37acf5231ac67..d3891c67c5091d8c4917c3a874c779704ae72d1d 100644 (file)
@@ -262,6 +262,9 @@ int main (int argc, char* argv[])
                } catch (FileError& e) {
                        cerr << argv[0] << ": " << e.what() << " (" << e.file().string() << ")\n";
                        exit (EXIT_FAILURE);
+               } catch (KDMError& e) {
+                       cerr << argv[0] << ": " << e.what() << "\n";
+                       exit (EXIT_FAILURE);
                }
        }