Fix `error` handler typo

Fixes #100.

/cc @guybedford