Made error message more precise.
This commit is contained in:
parent
1e77a6b043
commit
fa9fd0935b
@ -24,7 +24,7 @@ ast::PrimitiveTypePointer parsePrimitiveType(Context &context, ast::Domain &doma
|
|||||||
auto typeName = tokenizer.getIdentifier();
|
auto typeName = tokenizer.getIdentifier();
|
||||||
|
|
||||||
if (typeName.empty())
|
if (typeName.empty())
|
||||||
throw tokenize::TokenizerException(tokenizer.location(), "no type supplied");
|
throw tokenize::TokenizerException(tokenizer.location(), "could not parse primitive type, expected identifier");
|
||||||
|
|
||||||
auto matchingType = std::find_if(types.begin(), types.end(),
|
auto matchingType = std::find_if(types.begin(), types.end(),
|
||||||
[&](auto &primitiveTypeDeclaration)
|
[&](auto &primitiveTypeDeclaration)
|
||||||
|
Reference in New Issue
Block a user