Improved error reporting when a file is not specified.