diff options
Diffstat (limited to 'klangfarbrs')
-rw-r--r-- | klangfarbrs/src/lib.rs | 8 | ||||
-rw-r--r-- | klangfarbrs/src/main.rs | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/klangfarbrs/src/lib.rs b/klangfarbrs/src/lib.rs index eb7f027..cdeb52b 100644 --- a/klangfarbrs/src/lib.rs +++ b/klangfarbrs/src/lib.rs @@ -1,4 +1,4 @@ -use gdnative::api::Resource; +// use gdnative::api::Resource; use gdnative::prelude::*; #[derive(NativeClass)] @@ -24,8 +24,10 @@ impl Synth { #[export] fn _ready(&self, _owner: &Node) { - godot_print!("POOOP"); - test::test(); + match test::test() { + Ok(()) => godot_print!("POOOP"), + Err(error) => godot_print!("SHITE! {:?}", error), + }; } } diff --git a/klangfarbrs/src/main.rs b/klangfarbrs/src/main.rs index 066cd9d..fa1cdfb 100644 --- a/klangfarbrs/src/main.rs +++ b/klangfarbrs/src/main.rs @@ -1,5 +1,8 @@ use klangfarbrs::test::test; fn main() { - test(); + match test() { + Ok(()) => (), + Err(error) => panic!("oopsie: {:?}", error), + }; } |