add missing error callback