Skip to content

Commit 86e465b

Browse files
committed
base: panic! 💩
1 parent dda7857 commit 86e465b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::{env, fs};
22
use std::fs::File;
33
use std::io::Write;
4+
use std::process::exit;
45

56
const SIGN_BEGIN: &str = "<!-- BEGIN LGBT-CN SIGNATURE -->";
67
const SIGN_END: &str = "<!-- END LGBT-CN SIGNATURE -->";
@@ -11,7 +12,7 @@ fn main() {
1112
let args: Vec<String> = env::args().collect();
1213
let content: String;
1314
if args.len() != 2 {
14-
eprintln!("[Error] Wrong number of arguments. Request 1, provided {}", args.len() - 1);
15+
panic!("[Error] Wrong number of arguments. Request 1, provided {}", (args.len() - 1));
1516
}
1617
let target = args[1].clone();
1718
if target.starts_with("http") {

0 commit comments

Comments
 (0)