Skip to content

Commit 11fc3f1

Browse files
committed
Fix errors not being shown after the welcome message
1 parent 693bb70 commit 11fc3f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ fn main() -> Result<()> {
121121
stdout.flush()?;
122122
press_enter_prompt()?;
123123
clear_terminal(&mut stdout)?;
124+
// Flush to be able to show errors occuring before printing a newline to stdout.
125+
stdout.flush()?;
124126
}
125127
StateFileStatus::Read => (),
126128
}

0 commit comments

Comments
 (0)