Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit 7800bff

Browse files
committed
Better OutputMismatch error message
1 parent e398db7 commit 7800bff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/output.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,12 @@ impl OutputType for StdErr {
8585
mod errors {
8686
error_chain! {
8787
foreign_links {
88-
// Io(::std::io::Error);
8988
Fmt(::std::fmt::Error);
9089
}
9190
errors {
9291
OutputMismatch(expected: String, got: String) {
9392
description("Output was not as expected")
94-
display("expected {:?}, got {:?}", expected, got)
93+
display("expected to contain {:?}, got {:?}", expected, got)
9594
}
9695
ExactOutputMismatch(diff: String) {
9796
description("Output was not as expected")

0 commit comments

Comments
 (0)