mirror of
https://github.com/artegoser/ONLang
synced 2024-11-05 20:43:57 +03:00
feat: Add error text for file reading error
This commit is contained in:
parent
8b154e88fb
commit
6101cc6ef5
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue