feat: Add error text for file reading error

This commit is contained in:
Artemy 2022-08-06 19:24:36 +03:00
parent 8b154e88fb
commit 6101cc6ef5

View file

@ -20,7 +20,10 @@ fn main() {
if args.verbose == true {
println!("Running: {}\n", args.file);
}
let file_input = fs::read_to_string(args.file).unwrap().parse().unwrap();
let file_input = fs::read_to_string(args.file)
.expect("File reading error")
.parse()
.unwrap();
let mut onint = Interpreter::new(file_input);