Error handling for command line input file