Fix flash messages when failing to flash

It would give the success message when flashing carbons even if the flash
had actually failed to work
Merge pull request #6270 from optimumtact/iflashedu

Fix flash messages when failing to flash