better error catching

This commit is contained in:
2024-12-17 21:34:19 +01:00
parent 890f884cce
commit e28ad4de5a

View File

@@ -205,8 +205,8 @@ std::uint32_t Assembleur::ParseInstruction(const std::string& a_Str, std::uint32
}
}
} catch (std::invalid_argument& e) {
throw std::invalid_argument("[Line " + std::to_string(a_RealLine) + "] " + e.what());
} catch (std::exception& e) {
throw std::invalid_argument(" [Line " + std::to_string(a_RealLine) + "] " + e.what() + "\n" + a_Str);
}
return 0;