Adding the error helper