Skip to content

Commit

Permalink
Exercise error: Show path
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee committed Feb 19, 2023
1 parent 1d3ce0c commit 1f62dc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/exercise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ impl Exercise {
}

pub fn state(&self) -> State {
let mut source_file =
File::open(&self.path).expect("We were unable to open the exercise file!");
let mut source_file = File::open(&self.path).expect(&format!(
"We were unable to open the exercise file! {:?}",
self.path
));

let source = {
let mut s = String::new();
Expand Down

0 comments on commit 1f62dc2

Please sign in to comment.