add missing error() function
linting