From 98129631b5a71c9a43724903499b11170b518e7a Mon Sep 17 00:00:00 2001 From: Christian Poveda Date: Tue, 20 Aug 2019 10:47:38 -0500 Subject: [PATCH] Use err_unsup_format instead --- src/helpers.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/helpers.rs b/src/helpers.rs index d134a19f4c2..330d6bc996b 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -101,9 +101,8 @@ fn gen_random( if this.machine.communicate { // Fill the buffer using the host's rng. - getrandom::getrandom(&mut data).map_err(|err| { - InterpError::Unsupported(UnsupportedOpInfo::Unsupported(err.to_string())) - })?; + getrandom::getrandom(&mut data) + .map_err(|err| err_unsup_format!("getrandom failed: {}", err))?; } else { let rng = this.memory_mut().extra.rng.get_mut(); -- 2.44.0