added error helper