Fixed bad copy/paste error for handling onError