Skip to content

Commit 8d29337

Browse files
badicsalexsunshowers
authored andcommitted
use {:?} for displaying errors
This brings the output closer to the output of the 'standard' test harness.
1 parent bdd7927 commit 8d29337

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/runner.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ impl Requirements {
5555
if re.is_match(&input_path) {
5656
let testfn = self.test;
5757
let name = utils::derive_test_name(&root, &path, &self.test_name);
58-
5958
Some(Trial::test(name, move || {
60-
(testfn)(&path).map_err(Into::into)
59+
(testfn)(&path).map_err(|err| format!("{:?}", err).into())
6160
}))
6261
} else {
6362
None

0 commit comments

Comments
 (0)