mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-09 22:38:06 -05:00
Add hint for permissive mode when parsing fails within event handlerset
This commit is contained in:
@ -138,6 +138,10 @@ std::unique_ptr<ParsingResult> MenuFileReader::ReadMenuFile()
|
||||
if (!parser->Parse())
|
||||
{
|
||||
std::cout << "Parsing menu file failed!" << std::endl;
|
||||
|
||||
const auto* parserEndState = parser->GetState();
|
||||
if(parserEndState->m_current_event_handler_set && !parserEndState->m_permissive_mode)
|
||||
std::cout << "You can use the --menu-permissive option to try to compile the event handler script anyway." << std::endl;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user