diff options
author | Patrick Nguyen <drpng@google.com> | 2018-08-13 10:57:40 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-13 11:05:19 -0700 |
commit | dfa844ac95d07ce9584fc841a931aad65d3b4ac8 (patch) | |
tree | b2b8c69ad71aa1bc78c67614d2472ab4437d85b8 /tensorflow/core/api_def | |
parent | 4b8bcf946447e548c68657511d30a1f469e48e0c (diff) |
Reduce output on pbtxt parse error.
PiperOrigin-RevId: 208507857
Diffstat (limited to 'tensorflow/core/api_def')
-rw-r--r-- | tensorflow/core/api_def/api_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/api_def/api_test.cc b/tensorflow/core/api_def/api_test.cc index ae03a61ae6..51812caeb2 100644 --- a/tensorflow/core/api_def/api_test.cc +++ b/tensorflow/core/api_def/api_test.cc @@ -59,8 +59,8 @@ void GetGoldenApiDefs(Env* env, const string& api_files_dir, file_contents = PBTxtFromMultiline(file_contents); ApiDefs api_defs; - CHECK(tensorflow::protobuf::TextFormat::ParseFromString(file_contents, - &api_defs)) + QCHECK(tensorflow::protobuf::TextFormat::ParseFromString(file_contents, + &api_defs)) << "Failed to load " << file_path; CHECK_EQ(api_defs.op_size(), 1); (*name_to_api_def)[api_defs.op(0).graph_op_name()] = api_defs.op(0); |