Commit edd07d5a authored by Kenton Varda's avatar Kenton Varda

Oops, don't print field number running out error redundantly.

parent fb31458e
......@@ -128,7 +128,7 @@ nameWithOrdinal maxNumber = do
name <- located identifier
atSign
ordinal <- located literalInt
if locatedValue ordinal > maxNumber - 32
if locatedValue ordinal > maxNumber - 32 && locatedValue ordinal <= maxNumber
then exclamationPoint
<|> failNonFatal (locatedPos ordinal)
(printf "%d is nearing maximum of %d. Be sure to plan for future extensibility \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment