Commit 4470dcba authored by Nobuaki Sukegawa's avatar Nobuaki Sukegawa

Display element name in test error log

parent 8ba0e357
...@@ -5883,8 +5883,8 @@ class AbortingErrorCollector : public DescriptorPool::ErrorCollector { ...@@ -5883,8 +5883,8 @@ class AbortingErrorCollector : public DescriptorPool::ErrorCollector {
const Message *message, const Message *message,
ErrorLocation location, ErrorLocation location,
const string &error_message) { const string &error_message) {
GOOGLE_LOG(FATAL) << "AddError() called unexpectedly: " << filename << ": " GOOGLE_LOG(FATAL) << "AddError() called unexpectedly: " << filename << " ["
<< error_message; << element_name << "]: " << error_message;
} }
private: private:
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AbortingErrorCollector); GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AbortingErrorCollector);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment