Handle an error case.