Macro cmd_lib::die [−][src]
Report fatal errors and exit process conveniently
The arguments format is the same as in println!() macro. Note that this macro is just for convenience. The process will exit with 1 and print “FATAL: …” messages to error console. If you want to exit with other code, you should probably define your own macro or functions.
let file = "bad_file"; die!("could not open file: {}", file); // output: // FATAL: could not open file: bad_file