diff --git a/src/headers/transpiler/Target.hpp b/src/headers/transpiler/Target.hpp index b2338c3..0fa275e 100644 --- a/src/headers/transpiler/Target.hpp +++ b/src/headers/transpiler/Target.hpp @@ -128,8 +128,8 @@ shared_ptr Target::forName(string_view name, const bool newLines = true) } #undef ADDTARGET if (not newLines and not target->supportsOneLine()) { - cout << "--newlinesoff cannot be used with --target=" << name.substr(1) << endl; - exit(0); + name.remove_prefix(1); + throw Yerbacon::Exception(string("--newlinesoff cannot be used with --target=") += name); } return target; };