The error read-only property of the FileReader interface returns the error that occurred while reading the file.
error
MDN Reference