Skip to content

Commit db37ed3

Browse files
cavenesstfx-copybara
authored andcommitted
Add optional custom validation config to DistributionValidator component
PiperOrigin-RevId: 493342806
1 parent 37f2e08 commit db37ed3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorflow_data_validation/anomalies/custom_validation.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ Status CustomValidateStatisticsWithSerializedInputs(
286286
CustomValidateStatistics(test_statistics, base_statistics_ptr,
287287
validations, environment, &anomalies);
288288
if (!status.ok()) {
289-
return tensorflow::errors::Internal("Failed to run custom validations.");
289+
return tensorflow::errors::Internal("Failed to run custom validations: ",
290+
status.error_message());
290291
}
291292
if (!anomalies.SerializeToString(serialized_anomalies_proto)) {
292293
return tensorflow::errors::Internal(

0 commit comments

Comments
 (0)