Ah right, with the earlier changes your line numbers don't match my line numbers.
That picture is horrendous, better than no picture but still would prefer a proper screenshot. If you are on a windows system with a keyboard, then the PrtSc key will save the entire current screen to the clipboard and can be pasted into any picture editor(I use Paint to crop the pictures). Alt + PrtSc will produce a screenshot of only the selected window.
Cause of error for line 2209 is in function "getFarmFactors" of expansion.gd (line 2306 for me). It's returning a string, but function "dailyMilking" is expecting a bool. Change the first 2 lines:
var result = str(person.farmexpanded[factor])
if result == "default":
to(1 tab each):
var result = person.farmexpanded[factor]
if typeof(result) == TYPE_STRING && result == "default":
Edit: grammar