Skip to content

Commit 9e52640

Browse files
authored
Better error message
1 parent 17bf00f commit 9e52640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharpPlus/Parsing.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module Parsing =
5454
if consumeNumericPlus then regex.Append @"\+?" |> ignore
5555
"([0-9a-fA-F]+)"
5656
| '%' -> "%"
57-
| x -> failwith $"Unknown specifier: {x}"
57+
| x -> failwith $"Unknown format specifier: {x}"
5858
|> regex.Append |> ignore
5959
if consumeSpacesAfter then regex.Append @"\s*" else regex
6060
| '\\' | '*' | '+' | '?' | '|' | '{' | '[' | '(' | ')' | '^' | '$' | '.' | '#' | ' ' as escape ->
@@ -182,4 +182,4 @@ module Parsing =
182182
/// Gets a tuple with the result of parsing each element of a formatted text from the Console. Returns None in case of failure.
183183
let inline tryScanfn pf : '``(T1 * T2 * ... * Tn)`` option = trySscanf pf (Console.ReadLine ())
184184

185-
#endif
185+
#endif

0 commit comments

Comments
 (0)