Fix copy and paste error (and source) for error callback prototype