Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Mathlib/Tactic/SuccessIfFailWithMsg.lean
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ syntax (name := successIfFailWithMsg) "success_if_fail_with_msg " term:max tacti
/-- Evaluates `tacs` and succeeds only if `tacs` both fails and throws an error equal (as a string)
to `msg`. -/
def successIfFailWithMessage {s α : Type} {m : Type → Type} [Monad m] [MonadLiftT BaseIO m]
[MonadLiftT MetaM m] [MonadBacktrack s m] [MonadError m] (msg : String) (tacs : m α)
[MonadLiftT CoreM m] [MonadBacktrack s m] [MonadError m] (msg : String) (tacs : m α)
(msgref : Option Syntax := none) (ref : Option Syntax := none) : m Unit := do
let s ← saveState
let err ←
Expand Down