Skip to content

Commit 5a701bb

Browse files
YankesSupSuper
authored andcommitted
Add line info to exception
1 parent eacdad0 commit 5a701bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Mod/Mod.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ void Mod::loadOffsetNode(const std::string &parent, int& offset, const YAML::Nod
723723
if (offset < -1)
724724
{
725725
std::ostringstream err;
726-
err << "Error for '" << parent << "': offset '" << offset << "' has incorrect value in set '" << set << "'";
726+
err << "Error for '" << parent << "': offset '" << offset << "' has incorrect value in set '" << set << "' at line " << node.Mark().line;
727727
throw Exception(err.str());
728728
}
729729
else if (offset == -1)

0 commit comments

Comments
 (0)