readFileContents will return error instead of os.Exit