mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00
fixed punctuation in exception
This commit is contained in:
parent
0d72b94f9c
commit
638149f44b
@ -113,7 +113,7 @@ internal sealed class MarkupTokenizer : IDisposable
|
||||
if (encounteredClosing)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Encountered unescaped ']' token at position {_reader.Position}");
|
||||
$"Encountered unescaped ']' token at position {_reader.Position}.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ internal sealed class MarkupTokenizer : IDisposable
|
||||
|
||||
if (encounteredClosing)
|
||||
{
|
||||
throw new InvalidOperationException($"Encountered unescaped ']' token at position {_reader.Position}");
|
||||
throw new InvalidOperationException($"Encountered unescaped ']' token at position {_reader.Position}.");
|
||||
}
|
||||
|
||||
Current = new MarkupToken(MarkupTokenKind.Text, builder.ToString(), position);
|
||||
|
@ -107,7 +107,7 @@ public sealed class MarkupTests
|
||||
// Then
|
||||
result.ShouldNotBeNull();
|
||||
result.ShouldBeOfType<InvalidOperationException>();
|
||||
result.Message.ShouldBe("Encountered unescaped ']' token at position 16");
|
||||
result.Message.ShouldBe("Encountered unescaped ']' token at position 16.");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
Loading…
x
Reference in New Issue
Block a user