Skip to content

Commit 40f5fdd

Browse files
committed
Improve a diagnostic message
1 parent e87149a commit 40f5fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_RegexParser/Regex/Parse/Diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ extension ParseError: CustomStringConvertible {
179179
case .unsupportedDotNetSubtraction:
180180
return "subtraction with '-' is unsupported; use '--' instead"
181181
case .emptyProperty:
182-
return "empty property"
182+
return "expected property name"
183183
case .unknownProperty(let key, let value):
184184
if let key = key {
185185
return "unknown character property '\(key)=\(value)'"

0 commit comments

Comments
 (0)