Detect when you fail to pass a file in