From fa9fd0935b62080e8f7c1fec7267767627e90ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 16 Jun 2017 00:02:41 +0200 Subject: [PATCH] Made error message more precise. --- lib/pddlparse/src/pddlparse/detail/parsing/PrimitiveType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pddlparse/src/pddlparse/detail/parsing/PrimitiveType.cpp b/lib/pddlparse/src/pddlparse/detail/parsing/PrimitiveType.cpp index 51adee6..d45aece 100644 --- a/lib/pddlparse/src/pddlparse/detail/parsing/PrimitiveType.cpp +++ b/lib/pddlparse/src/pddlparse/detail/parsing/PrimitiveType.cpp @@ -24,7 +24,7 @@ ast::PrimitiveTypePointer parsePrimitiveType(Context &context, ast::Domain &doma auto typeName = tokenizer.getIdentifier(); 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 &primitiveTypeDeclaration)