Skip to content

Commit

Permalink
Reverse direction of error messages in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
C4K3 committed Dec 1, 2018
1 parent 5cea6a6 commit a3df92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ fn edit(input: &str, output: &str) -> Result<i32> {

while let Err(e) = new_nbt {
eprintln!("Unable to parse edited file");
for e in e.iter() {
for e in e.iter().collect::<Vec<&dyn std::error::Error>>().iter().rev() {
eprintln!(" caused by: {}", e);
}
eprintln!("Do you want to open the file for editing again? (y/N)");
Expand Down

0 comments on commit a3df92b

Please sign in to comment.