diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-10-07 18:26:48 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-10-07 21:59:37 +0200 |
commit | d375a6d2c6f031e7c5b602975038992687040d85 (patch) | |
tree | 2aac295083ffb41ab367ca56d30c894e767ae3e2 /libimagstore | |
parent | ae66b00f5f7f44ac06c13b14a5a1a42a1953497a (diff) |
Add output to test helper, so we can see in the trace whats happening
Diffstat (limited to 'libimagstore')
-rw-r--r-- | libimagstore/src/store.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 919b6f50..4172b4b2 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -2502,12 +2502,16 @@ mod store_hook_tests { } fn get_result(succeed: bool, abort: bool) -> HookResult<()> { + println!("Generting result: succeed = {}, abort = {}", succeed, abort); if succeed { + println!("Generating result: Ok(())"); Ok(()) } else { if abort { + println!("Generating result: Err(_), aborting"); Err(HEK::HookExecutionError.into_error()) } else { + println!("Generating result: Err(_), not aborting"); let custom = CustomData::default().aborting(false); Err(HEK::HookExecutionError.into_error().with_custom_data(custom)) } |