Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/raise_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def CfgReader__UnexpectedSymbol(
assert type(colNum) is int
assert type(ch) is str

errMsg = "Unexpected symbol in line {}, column {}: [{}]".format(
errMsg = "Unexpected symbol in line {}, column {}: {!r}".format(
lineNum,
colNum,
ch,
Expand Down Expand Up @@ -404,7 +404,7 @@ def CfgReader__UnknownEscapedSymbolInInclude(
assert ch != ""

errMsg = (
"Unknown escape symbol [{}] in an include path. Line {}. Column {}.".format(
"Unknown escape symbol {!r} in an include path. Line {}. Column {}.".format(
ch,
lineNum,
colNum,
Expand Down Expand Up @@ -493,7 +493,7 @@ def CfgReader__UnknownEscapedSymbolInQuotedOptionValue(
assert optionName != ""
assert ch != ""

errMsg = "Unknown escape symbol [{}] in a value of quoted option [{}]. Line {}. Column {}.".format(
errMsg = "Unknown escape symbol {!r} in a value of quoted option [{}]. Line {}. Column {}.".format(
ch,
optionName,
lineNum,
Expand Down
12 changes: 8 additions & 4 deletions tests/ErrorMessageBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,16 @@ def FileLineAlreadyHasIncludeDirective():

# --------------------------------------------------------------------
@staticmethod
def CfgReader__UnexpectedSymbol(lineNum: int, colNum: int, ch: str):
def CfgReader__UnexpectedSymbol(
lineNum: int,
colNum: int,
ch: str,
):
assert type(lineNum) is int
assert type(colNum) is int
assert type(ch) is str

errMsg = "Unexpected symbol in line {}, column {}: [{}]".format(
errMsg = "Unexpected symbol in line {}, column {}: {!r}".format(
lineNum,
colNum,
ch,
Expand Down Expand Up @@ -378,7 +382,7 @@ def CfgReader__UnknownEscapedSymbolInInclude(
assert ch != ""

errMsg = (
"Unknown escape symbol [{}] in an include path. Line {}. Column {}.".format(
"Unknown escape symbol {!r} in an include path. Line {}. Column {}.".format(
ch,
lineNum,
colNum,
Expand Down Expand Up @@ -459,7 +463,7 @@ def CfgReader__UnknownEscapedSymbolInQuotedOptionValue(
assert optionName != ""
assert ch != ""

errMsg = "Unknown escape symbol [{}] in a value of quoted option [{}]. Line {}. Column {}.".format(
errMsg = "Unknown escape symbol {!r} in a value of quoted option [{}]. Line {}. Column {}.".format(
ch,
optionName,
lineNum,
Expand Down
Loading