imag/imag-store/src/verify.rs

14 lines
249 B
Rust
Raw Normal View History

2016-07-16 22:45:51 +00:00
use std::process::exit;
use libimagrt::runtime::Runtime;
pub fn verify(rt: &Runtime) {
if rt.store().verify() {
info!("Store seems to be fine");
} else {
warn!("Store seems to be broken somehow");
exit(1);
}
}