From bae1c03746fdb7be59702bdf3493f85b394b337b Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 24 Dec 2023 19:08:18 +1300 Subject: Print better error message when unable to output bytecode Don't print the internal error representation to the console when an error occurs while trying to write the assembled bytecode to stdout. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 159b725..d9683a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,9 +33,8 @@ fn main() { } // Write bytecode to standard output - if let Err(err) = std::io::stdout().write_all(&bytecode) { + if let Err(_) = std::io::stdout().write_all(&bytecode) { eprintln!("Could not write to standard output, quitting."); - eprintln!("({err:?})"); std::process::exit(1); } } -- cgit v1.2.3-70-g09d2