mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Clarify character offset in exception
This commit is contained in:
@@ -62,7 +62,7 @@ namespace IfcParse {
|
|||||||
const std::string& expected_type
|
const std::string& expected_type
|
||||||
)
|
)
|
||||||
: IfcException(
|
: IfcException(
|
||||||
std::string("Token ") + token_string + " at " +
|
std::string("Token ") + token_string + " at offset " +
|
||||||
boost::lexical_cast<std::string>(token_start) +
|
boost::lexical_cast<std::string>(token_start) +
|
||||||
" invalid " + expected_type
|
" invalid " + expected_type
|
||||||
)
|
)
|
||||||
@@ -72,7 +72,7 @@ namespace IfcParse {
|
|||||||
char c
|
char c
|
||||||
)
|
)
|
||||||
: IfcException(
|
: IfcException(
|
||||||
std::string("Unexpected '") + std::string(1, c) + "' at " +
|
std::string("Unexpected '") + std::string(1, c) + "' at offset " +
|
||||||
boost::lexical_cast<std::string>(token_start)
|
boost::lexical_cast<std::string>(token_start)
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|||||||
Reference in New Issue
Block a user