throw an exception if no incoming source file is passed