Make sure an error condition is returned if, for some reason, the file