I know this one isn't your code, but shouldn't this one be `$self->error(...)`?