diff options
Diffstat (limited to 'dev/LibCompiler/src/AssemblyFactory+AssemblyInterface.cc')
| -rw-r--r-- | dev/LibCompiler/src/AssemblyFactory+AssemblyInterface.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dev/LibCompiler/src/AssemblyFactory+AssemblyInterface.cc b/dev/LibCompiler/src/AssemblyFactory+AssemblyInterface.cc index 11655fb..e6072d9 100644 --- a/dev/LibCompiler/src/AssemblyFactory+AssemblyInterface.cc +++ b/dev/LibCompiler/src/AssemblyFactory+AssemblyInterface.cc @@ -28,7 +28,11 @@ Int32 AssemblyFactory::Compile(std::string sourceFile, const Int32& arch) noexce if (arch != fMounted->Arch()) return LIBCOMPILER_INVALID_ARCH; - return fMounted->CompileToFormat(sourceFile, arch); + try { + return fMounted->CompileToFormat(sourceFile, arch); + } catch (std::exception& e) { + return LIBCOMPILER_EXEC_ERROR; + } } ///! @brief mount assembly backend. |
