Add error dialogs when file reading goes wrong