update NSError object