better error catching
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user