#1592: Handle invalid file error case.