Correct arity of remote-file error handler