summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0d79c33..17ef6e7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -47,7 +47,13 @@ fn main() {
let asyncpair = Arc::new((Mutex::new(false), Condvar::new()));
let asyncpair2 = asyncpair.clone();
- let core = Core::with_ram_from_hex(String::from(":0300000075800008\n:00000001FF\n"));
+ let core = match Core::with_ram_from_hex(String::from(":0300000075800008\n:00000001FF\n")) {
+ Ok(value) => value,
+ Err(err_string) => {
+ println!("{}", err_string);
+ return;
+ },
+ };
thread::spawn(move || {
let (ref should_stop, ref condvar) = *asyncpair2;