add .error support. Closes #5