Commits

Masahiro Hasegawa committed 58e72bb

不明な溶接命令に対してエラーを返すように

  • Participants
  • Parent commits e694c53

Comments (0)

Files changed (1)

                     try:
                         self.sub_tran(mo.group("o_commands"), buf)
                     except Exception as e:
-                        a = e.message + "\nline:mage: %s" % (line)
+                        a = e.message + "\nlineimage: %s" % (line)
                         e = e.__class__(a)
                         raise e
                 if db.get(Nnum):
             elif self.re_TUP.match(text):
                 mo = self.re_TUP.match(text)
                 self.on_tipup(output, mo)
+            else:
+                raise RuntimeError("Unknown OpeCode.")
             if mo and mo.group("o_commands"):
                 text = mo.group("o_commands")
             else: