summaryrefslogtreecommitdiffstats
path: root/vendor/proptest/src/test_runner/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/proptest/src/test_runner/errors.rs')
-rw-r--r--vendor/proptest/src/test_runner/errors.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/vendor/proptest/src/test_runner/errors.rs b/vendor/proptest/src/test_runner/errors.rs
index dfa4a4852..a75e3a5c7 100644
--- a/vendor/proptest/src/test_runner/errors.rs
+++ b/vendor/proptest/src/test_runner/errors.rs
@@ -114,11 +114,10 @@ impl<T: fmt::Debug> fmt::Display for TestError<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
TestError::Abort(ref why) => write!(f, "Test aborted: {}", why),
- TestError::Fail(ref why, ref what) => write!(
- f,
- "Test failed: {}; minimal failing input: {:?}",
- why, what
- ),
+ TestError::Fail(ref why, ref what) => {
+ writeln!(f, "Test failed: {}.", why)?;
+ write!(f, "minimal failing input: {:#?}", what)
+ }
}
}
}