Fix `error` handler typo

/cc @guybedford