diff --git a/src/jit.cpp b/src/jit.cpp index 4890b02d..4382d5c2 100644 --- a/src/jit.cpp +++ b/src/jit.cpp @@ -68,8 +68,10 @@ struct JIT { if (!::compile( { "runtime", module_name }, { std::string(runtime_srcs), program_str }, - thorin.world(), std::cerr)) - error("JIT: error while compiling sources"); + thorin.world(), std::cerr)) { + print(std::cerr, "JIT: error while compiling sources"); + return -1; + } thorin.opt();