Greatly improve logic for selecting smart target file

This commit is contained in:
timvisee 2018-04-11 22:45:24 +02:00
parent ff8c644194
commit 149e98a887
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
2 changed files with 166 additions and 2 deletions

View file

@ -48,6 +48,11 @@ pub fn print_error<E: Fail>(err: E) {
}
}
/// Quit the application regularly.
pub fn quit() -> ! {
exit(0);
}
/// Quit the application with an error code,
/// and print the given error.
pub fn quit_error<E: Fail>(err: E) -> ! {