From 34cd34df8f145084549670d7ccaf8cbe116c51fd Mon Sep 17 00:00:00 2001 From: <> Date: Thu, 13 Jul 2017 03:24:02 -0700 Subject: [PATCH] Handled exceptions thrown by entity converter --- ReflexToQ3/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ReflexToQ3/main.cpp b/ReflexToQ3/main.cpp index f275d9b..1ae6794 100644 --- a/ReflexToQ3/main.cpp +++ b/ReflexToQ3/main.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include "cxxopts.hpp" @@ -112,7 +113,11 @@ void convert_entities(const cxxopts::Options &o, const vector > & fn = &brushdef_gtk; } for (const vector &entity : q) { - write(entity, fout, fn, e); + try { + write(entity, fout, fn, e); + } catch (exception &e) { + cerr << e.what() << endl; + } } }