aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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),
};
}