Project import generated by Copybara.
GitOrigin-RevId: 6f964e58d874e47fb6207aa97d060a4cd6428527
This commit is contained in:
@@ -245,9 +245,9 @@ REGISTER_CALCULATOR(ErrorCalculator);
|
||||
[self waitForExpectationsWithTimeout:3.0 handler:NULL];
|
||||
XCTAssertNotNil(error);
|
||||
status = error.gus_status;
|
||||
XCTAssertNotEqual(status.error_message().find(kExpectedError), std::string::npos,
|
||||
XCTAssertNotEqual(status.message().find(kExpectedError), std::string::npos,
|
||||
@"Missing expected std::string '%s' from error messge '%s'", kExpectedError,
|
||||
status.error_message().c_str());
|
||||
status.message().data());
|
||||
}
|
||||
|
||||
- (void)testSetStreamHeader {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
- (NSString *)description {
|
||||
return [NSString stringWithFormat:@"<%@: %p; status = %s>",
|
||||
[self class], self, _status.error_message().c_str()];
|
||||
[self class], self, _status.message().data()];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -42,7 +42,7 @@ NSString *const kGUSGoogleUtilStatusErrorKey = @"GUSGoogleUtilStatusErrorKey";
|
||||
|
||||
+ (NSError *)gus_errorWithStatus:(const ::mediapipe::Status &)status {
|
||||
NSDictionary *userInfo = @{
|
||||
NSLocalizedDescriptionKey : @(status.error_message().c_str()),
|
||||
NSLocalizedDescriptionKey : @(status.message().data()),
|
||||
kGUSGoogleUtilStatusErrorKey : [GUSUtilStatusWrapper wrapStatus:status],
|
||||
};
|
||||
NSError *error = [NSError errorWithDomain:kGUSGoogleUtilStatusErrorDomain
|
||||
|
||||
Reference in New Issue
Block a user