Fix a couple of calls to `error`.