diff options
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index d6254a9..6135a15 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,8 +24,8 @@ fn main() { true => { let file: File = File::open(path).unwrap(); let data: ParserResult = parser(BufReader::new(file)); - println!("{:#?}", serde_json::to_string_pretty(&data)); + println!("{}", serde_json::to_string_pretty(&data).unwrap()); } - _ => panic!("File does not exist or is not available."), + _ => panic!("File {:#?} does not exist or is not available.", path), }; } |