Updated todo list to catch any exceptions and presented an error message explaining why the input failed