replace definition of error with errorWithStackTrace