From 628a9f0eaa8f4302d4ec61f8b944b3c3e08e5265 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 27 May 2020 07:04:46 -0700 Subject: [PATCH] Print more detailed `test run` failures (#1764) --- cranelift/filetests/src/test_run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cranelift/filetests/src/test_run.rs b/cranelift/filetests/src/test_run.rs index 0044779ba2..58888bf0f3 100644 --- a/cranelift/filetests/src/test_run.rs +++ b/cranelift/filetests/src/test_run.rs @@ -58,7 +58,7 @@ impl SubTest for TestRun { // running x86_64 code on aarch64 platforms. let compiled_fn = compiler .compile(func.clone().into_owned()) - .map_err(|e| e.to_string())?; + .map_err(|e| format!("{:?}", e))?; command.run(|_, args| Ok(compiled_fn.call(args)))?; } }