Missed the error declaration for an invalid file type #326