jailer: handle internal errors
@@ -7,10 +7,13 @@ extern crate clap;
extern crate fc_util;
extern crate jailer;
-fn main() -> jailer::Result<()> {
- jailer::run(
+fn main() {
+ match jailer::run(
jailer::clap_app().get_matches(),
(chrono::Utc::now().timestamp_nanos() / 1000) as u64,
fc_util::now_cputime_us(),
- )
+ ) {
+ Ok(()) => (),
+ Err(error) => eprintln!("Jailer error: {}", error),
+ }
}
