summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2023-12-24 19:08:18 +1300
committerBen Bridle <bridle.benjamin@gmail.com>2023-12-24 19:09:23 +1300
commitbae1c03746fdb7be59702bdf3493f85b394b337b (patch)
tree8ddacb989ef4ec6452a17606c0d2b12a3efa4d6d
parent9ee20e01629c13cd28c19735f572cc0b255e0d8a (diff)
downloadbedrock-asm-bae1c03746fdb7be59702bdf3493f85b394b337b.zip
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.
-rw-r--r--src/main.rs3
1 files changed, 1 insertions, 2 deletions
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);
}
}