OSDN Git Service

Composition2IRCompiler と Phrase2IRCompiler で MessageException をキャッチするのを忘れていたので修正
authorstarg <starg@users.osdn.me>
Tue, 2 Aug 2016 12:29:08 +0000 (21:29 +0900)
committerstarg <starg@users.osdn.me>
Tue, 2 Aug 2016 12:29:08 +0000 (21:29 +0900)
src/ast2ir/composition2ir.cpp
src/ast2ir/phrase2ir.cpp

index 21d41f9..3e69a85 100644 (file)
@@ -32,6 +32,11 @@ bool Composition2IRCompiler::Compile(const AST::Composition& ast, IR::TrackBlock
 
         return true;
     }
+    catch (const Exceptions::MessageException& e)
+    {
+        AddMessage(e.Item);
+        return false;
+    }
     catch (const std::exception& e)
     {
         AddMessage(
index 176cced..b5d2926 100644 (file)
@@ -90,6 +90,11 @@ bool Phrase2IRCompiler::Compile(const AST::Phrase& ast, IR::BlockReference index
         Compile(ast.Block, index);
         return true;
     }
+    catch (const Exceptions::MessageException& e)
+    {
+        AddMessage(e.Item);
+        return false;
+    }
     catch (const std::exception& e)
     {
         AddMessage(