Improve error message

This commit is contained in:
Patrick Lühne 2020-05-29 17:43:02 +02:00
parent 9b6632cc94
commit 4ec8bb56b9
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -276,8 +276,8 @@ impl std::fmt::Debug for Error
predicate_declaration.declaration, predicate_declaration.declaration), predicate_declaration.declaration, predicate_declaration.declaration),
Kind::PrivatePredicateInSpecification(ref predicate_declaration) => Kind::PrivatePredicateInSpecification(ref predicate_declaration) =>
write!(formatter, write!(formatter,
"private predicate {} should not occur in specification (consider declaring it an input or output predicate)", "private predicate {} should not occur in specification (consider declaring {} an input or output predicate)",
predicate_declaration.declaration), predicate_declaration.declaration, predicate_declaration.declaration),
Kind::RunVampire => write!(formatter, "could not run Vampire"), Kind::RunVampire => write!(formatter, "could not run Vampire"),
Kind::ProveProgram(exit_code, ref stdout, ref stderr) => Kind::ProveProgram(exit_code, ref stdout, ref stderr) =>
{ {