Minor fixes

This commit is contained in:
SirLynix
2022-05-05 20:20:44 +02:00
parent 973b589b08
commit 81085508ec
5 changed files with 7 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ namespace Nz::ShaderLang
if (!m_context->module)
{
const Token& nextToken = Peek();
throw ParserUnexpectedTokenError{ nextToken.location };
throw ParserUnexpectedTokenError{ nextToken.location, nextToken.type };
}
if (!statement)
@@ -1110,7 +1110,7 @@ namespace Nz::ShaderLang
case TokenType::PlusAssign: assignType = ShaderAst::AssignType::CompoundAdd; break;
default:
throw ParserUnexpectedTokenError{ token.location };
throw ParserUnexpectedTokenError{ token.location, token.type };
}
Consume();