changed exception message for non files.