Deal with `err` case too.