Skip to content

Commit

Permalink
issue/135: better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
morganthomas committed Apr 8, 2024
1 parent 6874437 commit ef90d59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion basic/src/bin/valida.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ fn main() {

let mut machine = BasicMachine::<BabyBear>::default();
let Program { code, data } =
load_executable_file(fs::read(&args.program).expect("Failed to read executable file"));
load_executable_file(fs::read(&args.program)
.expect(format!("Failed to read executable file: {}", &args.program).as_str()));
machine.program_mut().set_program_rom(&code);
machine.cpu_mut().fp = args.stack_height;
machine.cpu_mut().save_register_state();
Expand Down

0 comments on commit ef90d59

Please sign in to comment.