Added `addError` method