imag/imag-store/src/verify.rs

12 lines
253 B
Rust
Raw Normal View History

2016-07-16 22:45:51 +00:00
use libimagrt::runtime::Runtime;
2016-09-05 17:34:12 +00:00
use libimagutil::warn_exit::warn_exit;
2016-07-16 22:45:51 +00:00
pub fn verify(rt: &Runtime) {
if rt.store().verify() {
info!("Store seems to be fine");
} else {
2016-09-05 17:34:12 +00:00
warn_exit("Store seems to be broken somehow", 1);
2016-07-16 22:45:51 +00:00
}
}