chore: tweak error message about weak options (#10844)

This PR tweaks the error message about options defined in libraries.
This was relevant for an option defined in Mathlib, but set in FLT.
This commit is contained in:
Kim Morrison 2025-10-20 13:28:20 +11:00 committed by GitHub
parent 823671f744
commit 77e72afe0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -315,7 +315,7 @@ def reparseOptions (opts : Options) : IO Options := do
| unless weak do
throw <| .userError s!"invalid -D parameter, unknown configuration option '{name}'
If the option is defined in this library, use '-D{`weak ++ name}' to set it conditionally"
If the option is defined in a library, use '-D{`weak ++ name}' to set it conditionally"
let .ofString val := val
| opts' := opts'.insert name val -- Already parsed