This won't work. Note you are assigning to `onerror` the result of a function invocation. What is the result of this? `undefined`. You must return a function with the functionality. The function `getOnErrorFor()` is a function builder.