Centralized the error messages to one location.

This commit is contained in:
beder
2008-07-08 20:31:48 +00:00
parent 84bcdda342
commit 0b2e0dd32b
9 changed files with 71 additions and 46 deletions

View File

@@ -157,7 +157,7 @@ namespace YAML
return ScanPlainScalar();
// don't know what it is!
throw ParserException(INPUT.line, INPUT.column, "unknown token");
throw ParserException(INPUT.line, INPUT.column, ErrorMsg::UNKNOWN_TOKEN);
}
// ScanToNextToken