add an additional parameter to the error callback