It is confusing that the message suggesting to use the `diagnostics` option is given even when the option is already set. This PR makes use of lazy message data to make the message contingent on the option being false. It also tones down the promise that there is any diagonostic information available, since sometimes there is nothing to report. Suggested by Johan Commelin.
20 lines
386 B
Text
20 lines
386 B
Text
/-!
|
|
# Mentioning `set_option diagnostics true` depends on it not already being set
|
|
-/
|
|
|
|
/--
|
|
error: failed to synthesize
|
|
Coe Nat Int
|
|
Additional diagnostic information may be available by using the `set_option diagnostics true` command.
|
|
-/
|
|
#guard_msgs in
|
|
#synth Coe Nat Int
|
|
|
|
set_option diagnostics true
|
|
|
|
/--
|
|
error: failed to synthesize
|
|
Coe Nat Int
|
|
-/
|
|
#guard_msgs in
|
|
#synth Coe Nat Int
|